10.4: Use a graphical GUI to create launchd tasks
Dec 13, '05 06:01:00AM
Contributed by: nvir
In my case, I just wanted to start up snmpd at boot time on Tiger. I had quite a hard time configuring launchd to do so, until I found out about the open-source Lingon program. Lingon is simply a graphical user interface you can use to configure launchd correctly. It includes an assistant, as well as a built-in text editor for editing.
In order to start a daemon, I just added a Users Daemon, into which I entered the following:
- Label: org.ucd.snmpd
- ProgramArguments:
- /usr/sbin/snmpd
- -c /etc/snmpd.conf
- Check RunAtLoad and enter a description.
Note that you need to supply the program's arguments on several lines -- the program itself, then its arguments, as seen above. In the Miscellaneous tab, you also need to enter UserName as root. Click on Save & Load, and watch the little button next to your new agent. If it's green, it means that it worked!
No need to say that Lingon doesn't need to be running for all this to work ... and I have no doubt that plenty of very cool things can be done with this tool, as there are a lot of very cool features in launchd.
Comments (5)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20051208011357745