[hobbit] Mac osx startup script?

David Baldwin david.baldwin at ausport.gov.au
Fri May 29 01:50:17 CEST 2009


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
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

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.
-------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: com.xymon.client.plist
Type: text/xml
Size: 555 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090529/1e6e89b1/attachment.xml>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: launchclient.sh
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090529/1e6e89b1/attachment.ksh>


More information about the Xymon mailing list