###############################
#### mytest-service.conf ######
exec bash -c "sleep 10; exit 1"
respawn
#### mytest-watchdog.conf #####
start on stopping "JOB=mytest-service"
script
echo "$JOB - $PROCESS - $RESULT - $EXIT_STATUS - $EXIT_SIGNAL"
end script
###############################
#### syslog ###################
Jan 23 21:22:47 myhost kernel: [84419.740121] init: mytest-service main process (25578) terminated with status 1
Jan 23 21:22:47 myhost kernel: [84419.740145] init: mytest-service main process ended, respawning
#### mytest-watchdog.log ######
mytest-service - - ok - -