Keeping a daemon running?
Jay Nugent
jjn at nuge.com
Tue Jan 12 13:54:11 PST 2010
Greetings,
On Wed, 13 Jan 2010, James McDonald wrote:
> On 13/01/10 06:36, Michael Hipp wrote:
> > I have servers with a couple of daemons that regularly seem to silently
> > die off. It would be great to have some tool that would detect this
> > fault condition and dutifully restart them. I know such things exist,
> > was wondering if anyone here could recommend something that does this?
> monit
>
> http://mmonit.com/monit/
Or you can launch the daemon from within /etc/inittab and set it to
"respawn". Like this:
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm -nodaemon
Enjoy!
--- Jay Nugent
Ypsilanti, Michigan
Train how you will Operate, and you will Operate how you were Trained.
+------------------------------------------------------------------------+
| Jay Nugent jjn at nuge.com (734)484-5105 (734)649-0850/Cell |
| Nugent Telecommunications [www.nuge.com] |
| Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
| ISP Monitoring [www.ispmonitor.org] ISP & Modem Performance Monitoring |
| Web-Pegasus [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
+------------------------------------------------------------------------+
4:01pm up 33 days, 15:36, 3 users, load average: 0.02, 0.03, 0.04
More information about the Linux-users
mailing list