[ubuntu-uk] VPS hosts
DaveWalker at ubuntu.com
Fri Aug 17 16:54:46 BST 2007
On Fri, 2007-08-17 at 16:42 +0100, Dave Walker wrote:
> Make this script and chmod +x it.
whoops use this instead;
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then echo grooovy > /dev/null
# irssi is not running, better relaunch
screen -dmS s4i $SERVICE # doesn't work when launched from cron
# The following will be emailed to you
echo Hi `whoami`. $SERVICE crashed, needs to be restarted!
More information about the ubuntu-uk