I am running nohup to keep a php script running in the background.
Is there anyway to ensure the process keeps running? Is there a command that can check to see if the process is still running and if not, is there a command that re runs nohup.
As you can guess, I am new to using nohup.
The command I use to start the process:
nohup php htdocs/index.php twitter stream /dev/null &
This is for capturing tweets using twitter's streaming api