Mac osx startup script?
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 `launchd` and `launchd.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 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
Attachments (2)