ircd@bobby:~$ cat chkircd.sh #!/bin/bash if [ -z "$(ps cx | grep ircd | grep -v grep)" ] ; then echo "$(date) - Restarting IRCd" >> /home/ircd/chkircd.log /home/ircd/bin/ircd fi ircd@bobby:~$