On 14-10-28 10:34 AM, Steve Litt wrote:
I think I understand. If I wanted to run daemontools at boot, I would
put the svscanboot command in /etc/rc.local, right?

Assuming there was no pre-built package, or port available, yes.

For example, I have installed smokeping from source instead of from package/port. To start it up, I place that command (actually a series of commands) in /etc/rc.local.

If I were using the package or port instead, an /etc/rc.d/smokeping script would probably be supplied for me, and I would presumably alter rc.conf.local to include pkg_scripts="smokeping" or something like that.

If someone has already done the work for you, use their rc.d script and set it to start from inside rc.conf.local. If you have to do the work yourself AND you're NOT interested in creating an rc.d script, start it from in rc.local.

The "better" option would probably be to create an rc.d script that integrates cleanly, then release your work as a port, but sometimes that's just too much work.

--
-Adam Thompson
 [email protected]

Reply via email to