well, there is solution on internet to linux's daytime service startup. But I can not find solution to Mac. I don't know if I should find the executable of daytime first, and then write a .plist file, or just there is something built-in, all I need to do is just like on linux -- that is 'turn disable to NO'.
Asked
Active
Viewed 800 times
1 Answers
0
I'm afraid I don't have enough rep to comment so please excuse the answer;
Taken from here
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<false/>
<key>GroupName</key>
<string>staff</string>
<key>Label</key>
<string>my_organisation.daytime</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/usr/local/bin/boost_daytime_server</string>
<key>ServiceDescription</key>
<string>Daytime Server with Boost</string>
<key>UserName</key>
<string>root</string>
</dict>
</plist>
- And load into OS X
sudo lauchctl load /Library/LaunchDaemons/my_organization.daytime.plist
We can test the client using:
./client schorsch.efi.fh-nuernberg.de

Ewan
- 14,592
- 6
- 48
- 62
-
thank kisamoto. my concern is that, previously in linux world, daytime service is standard, if you need it, just run 'inetd start daytime'. but later, out of secure reason, daytime service is disabled, but if you need it you can still enable it by running xinetd. However, in Mac's world, inetd and xinets all turned into launchctl, and I can not find a simple built-in supported way to start daytime servrice. I can write a simple C++ file to run as daytime server, but I just like to know 'where are all the standard services in Mac that once available in linux distributions?' – wuhaochi May 07 '13 at 14:27
-
agreed @wuhaochi. I'm sorry this is the only alternative I could come up with for my Mac. I know that you can compile and run xinetd alongside launchctl (as long as it doesn't try and use the same ports) if it's any consolation. – Ewan May 07 '13 at 15:07