Malcolm,
You could rework something like the script below (in your own flavour of
shell), and bung it into cron. This works well for most things I have found.
#!/bin/csh
foreach DAEMON ( MonitorSuLog.pl MonitorLogins.pl DiskHogs.pl )
ps -e | fgrep "$DAEMON:t" | cut -c1-8 > /dev/null
if ( $status > 0 ) then
echo "Restarting $DAEMON"
date
$DAEMON &
endif
end
Laurie.
-----Original Message-----
From: Malcolm Turnbull [mailto:Malcolm.Turnbull@xxxxxxxxxxxx]
Sent: 04 November 2002 09:00
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Latest stable version?
Michael,
It sounds like the problem you are having is with ldirectord.
You can get the latest from the web based cvs from the HA-Linux web site.
Does anyone know of a simple restart script ?
i.e. a Demon that will keep an eye on processes and restart them if they
fail ?
Michael T. Halligan wrote:
> I'm using a bit of a mismatched system here.. I think I'm using
> the ultramonkey ldirectord, and the latest stable heartbeat.. It's
> been pretty flakkey, ldirectord's status stops pretty regularly, and
> it loses virtual interfaces without any errors in the logs..
>
> What version is considered to be reliable right now for a rather
> stock 7.3 installation and 2.4 kernels?
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|