a very simple script would be
like this - I made it very simple to check for syslog (/usr/bin/start_syslog is a fictious program)
Code:
#!/bin/sh
ps -ef|grep [s]yslog > /dev/null 2>&1
STATUS=$?
if [ $STATUS = 0 ]
then
echo "STATUS $STATUS success"
else
echo "Syslog is not running $STATUS"
/usr/bin/start_syslog
fi
You can put the script into a crontab. The entry will look like this to have it run every hour at 15 minutes after the hour:
15 * * * * /path/to/sysloger_checker.sh 1>/dev/null
Good luck,
I hope it is not homework I am doing for you

.