I\'m having issue try to configure supervisor to run a php script. Running supervisor in debug mode gives me this:
2015-03-09 08:53:06,342 INFO supervisord s
I've been using Supervisord for a while and this is what I have in my config:
[program:worker1]
command=php /absolute/path/to/myScript.php
Reason I'm writing this as an anwser is due to formatting.
Also, try this script:
for(i = 0; i < 10; i++)
{
printf("\nIteration: %d", $i);
usleep(1000 * 200); // 200 milliseconds between each printf
}
exit;
And add it to supervision. It should be restarted after it does its echoing.