Server Administration: automatically restarting services
Darin Perusich
Darin.Perusich at cognigencorp.com
Thu Apr 8 07:23:19 EDT 2004
any easy way to accomplish this is to write cron job which which runs
every 5 minutes, checks for the services and starts if necessary.
sysadmin magazine had an article on a year or two ago called keeping
your services up with viagara, or something like that.
i would start off by monitoring your server with a monitoring system
like BigSister or BigBrother. i've been using bigbrother for like 5+
years to monitor my systems and i'd stronly recommend it. i've reciently
started using bigsister and i like it, integrates nicely with bigbrother
and it's gpl'd.
Matt Cristantello wrote:
> -----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-----
>
>
--
Darin Perusich
Unix Systems Administrator
Cognigen Corp.
darinper at cognigencorp.com
More information about the nflug
mailing list