I've got a FreeBSD box that I need an alternative to daemontools for (long story). I've read references to using /etc/ttys
for this in the same sort of way as you would use /etc/inittab
under Linux.
http://www.onlamp.com/pub/a/bsd/2000/11/28/FreeBSD_Basics.html?page=2 is a pretty good background on the basics of init
and ttys
, but it lacks specific on how to add an arbitrary daemon to /etc/ttys
.
The man page for init
includes this:
The init utility can also be used to keep arbitrary daemons running,
automatically restarting them if they die. In this case, the first field
in the ttys
file must not reference the path to a configured device
node and will be passed to the daemon as the final argument on its com-
mand line. This is similar to the facility offered in the AT&T System V
UNIX /etc/inittab.
So, I've done some googling, I've done some RTFMing, but I still haven't found that definitive HOWTO or snippet that will give me the complete one liner to add to /etc/ttys
. Any clues?
Thanks,