SyntaxFix
Write A Post
Hire A Developer
Questions
Have a look at monit (http://mmonit.com/monit/). It handles start, stop and restart of your script and can do health checks plus restarts if necessary.
Or do a simple script:
while true do /your/script sleep 1 done