Here is an example of a job I have running. I'd like to receive a notification if it exits, because it's important that it stays up.
(I know php isn't the best tool for this, but it's someone else's code, so, whatever)
/etc/init/watchdog.conf
# Events
start on startup
stop on shutdown
# Automatically respawn
respawn
respawn limit 20 5
# Run the script!
script
exec $PHP_PATH/php -f $WD_PATH/index.php wd_run
end script