Server Administration: automatically restarting services

Matt Cristantello matt at crazy42.org
Thu Apr 8 00:38:48 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

I was just wondering if any of you have come across any projects to
automatically restart crashed or broken services (such as sshd, apache,
etc.) in linux. I have rcN.d and init.d scripts set up, but I'd like
something to check, say every five minutes, and see if a process is
still running/is in a good state, then restart it if it's not. I can do
something similar using ps -A, grep, and then running the init.d script
if necessary, but I'd like somethign a little more automatic. If nothing
like this has been done, I'll look into writing something and releasing
it under the GPL or something like that.

Thanks,
~Matt

- --
****************************************************************************
"When trouble arises and things look bad, there is always one
individual who perceives a solution and is willing to take command.
Very often, that individual is crazy."
- -Dave Barry
****************************************************************************
~                Matthew D. Cristantello
~                matt at crazy42.org
~                716-472-3833 (cell)
~                AIM: Matt977
****************************************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAdNdWi3I4xV1yeBQRAgdxAJ4iJzw5aV/nEwg5iFkpyFjuSMyj/ACgkyH5
mfvzrlkH8IJdTAf/MsDREhY=
=TS4d
-----END PGP SIGNATURE-----



More information about the nflug mailing list