On Fri, 2007-08-17 at 16:42 +0100, Dave Walker wrote: > > Make this script and chmod +x it. >
whoops use this instead; #!/bin/sh SERVICE='irssa' if ps ax | grep -v grep | grep $SERVICE > /dev/null then echo grooovy > /dev/null else # 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! fi ### Done -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/