By Jon Griffin
/etc/inittab is evil
Why? Because it is extremely difficult to control.The solution is to use daemontools from DJ Bernstien. This allows you to easily start and stop the processes you run and also keep them alive.
Initial Setup – quick
I will assume a Linux box for this (solaris is only slightly different.)
- Make sure you have daemontools
- To make life easier, also get supervise-scripts
- Note – If you installed qmail you should be using daemontools anyway
- Create /etc/rc.d/init.d/aol-yourservicename control file. aol-yourservicename. This will only run with supervise-scripts.
- Create a aol-yourservicename directory in /var/service Sample /var/service directory
- If you installed supervise-scripts, run svc-add -d aol-yourservicename /var/service/aol-yourservicename
- You have now added the script to supervise control
- To control your service simply run /etc/rc.d/init.d/aol-yourservicename (start,stop,restart,status)
There you are no more need for inittab!

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Leave a Reply
You must be logged in to post a comment.
