dzchimpo
New Member
Also set up a cron:
* * * * * /bin/bash /root/test.sh
with:
* * * * * /bin/bash /root/test.sh
with:
Code:
cat /root/test.sh
#!/bin/bash
dt=`date`
process=deluged
if ! [[ `ps ax | grep -v grep | grep $process` ]]
then
dm="daemon was not running at "$dt
echo $dm | mutt -s "Daemon killed test" -- me@some
else
echo "daemon is already running"
fi
exit