我在我的Ubuntu 10.04上安裝了supervisord
,並且它不斷運行Java進程,並且在它以某種方式死亡或崩潰時應該恢復(重新加載)進程。Supervisord不會啓動死亡進程
在我htop
我送SIGKILL,SIGTERM,SIGHUP,SIGSEGV信號到Java進程,看/etc/logs/supervisord.log
文件,它說。
08:09:46,182 INFO success: myprogram entered RUNNING state,[...]
08:38:10,043 INFO exited: myprogram (exit status 0; expected)
在08:38
我用SIGSEGV殺死進程。爲什麼代碼0退出,爲什麼supervisord
根本沒有重啓?
我所有的supervisord.conf
關於這個具體方案如下:當我啓動supervisord
[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
工藝作品真的很好,但是沒有得到痊癒。
順便說一句,如何啓動supervisord作爲服務,以便它在整個系統重新啓動時自動啓動的任何想法?
非常棒!我正在尋找這個'autorestart'設置。我期待它默認爲'true',然後我迷失在文檔中。順便說一句,我認爲'chkconfig'需要一個進程是一個服務,然而'supervisord'不是一個服務,因此'chkconfig -l'命令不適用於我,並且說'supervisor:無法識別的服務'。你對此有什麼看法? –
你是如何安裝主管的?如果您使用apt-get,那麼它將作爲服務安裝,至少對於Ubuntu 10.04來說。 –
它在10.04上,我想我使用'easy_install'安裝了它。感謝您注意到這一點。 –