I have a supervisord installed on my Ubuntu 10.04, and it runs the Java process continuously and needs to heal (restart) the process when it somehow dies or crashes.
In my htop I send SIGKILL, SIGTERM, SIGHUP, SIGSEGV for this Java process and look at the /etc/logs/supervisord.log file and it says.
08:09:46,182 INFO success: myprogram entered RUNNING state,[...] 08:38:10,043 INFO exited: myprogram (exit status 0; expected)
At 08:38 I kill the process with SIGSEGV. How is it that he came out with code 0 and why does he not supervisord restart it at all?
All my supervisord.conf about this particular program are as follows:
[program:play-9000] command=play run /var/www/myprogram/ --%%prod stderr_logfile = /var/log/supervisord/myprogram-stderr.log stdout_logfile = /var/log/supervisord/myprogram-stdout.log
The process works very well when I start the supervisor, but it does not heal.
By the way, what ideas start the supervisor as a service so that it starts automatically when the entire system reboots?
source share