Rob McBroom wrote:
On 2009-May-19, at 4:04 PM, William Ottley wrote:
I have the xymon client running on a mac osx, and I'm now looking to
find a way for the client to run at startup.You'll probably want to use launchd to run it. See the man pages for
launchdandlaunchd.plist. There's a nice tool called [Lingon][1]
that will help you create the property list.
Here are some files I've been playing with to get hobbit client launching under OSX 10.5.
/Library/LaunchDaemons/com.xymon.client.plist /usr/lib/hobbit/client/launchclient.sh
I put hobbitclient into /etc/defaults rather than /etc/default (which doesn't exist on OSX).
Then you need to load the launchd plist: $ sudo -s
launchctl load /Library/LaunchDaemons/com.xymon.client.plist
launchctl start com.xymon.client
reboot to be sure to be sure it works on startup.
Still need to get back to completing an OSX package of the client. Maybe next week...
David.
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin at ausport.gov.au Leverrier Street Bruce ACT 2617
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au