मैं पर्यवेक्षक का उपयोग कर एक सेवा के रूप में एक नोड अनुप्रयोग चलाने की कोशिश कर रहा हूं।पर्यवेक्षक एक सेवा के रूप में नोड चल रहा है
अगर मैं/opt/सक्रिय रहने की अवधि के लिए जाने के लिए और चलाएँ:
node app.js
मेरा आवेदन अग्रभूमि में शुरू होता है। जैसे ही मैंने ctrl + c मारा, यह मर जाता है .. जैसा कि अपेक्षित था।
मैं पर्यवेक्षक स्थापित किया है और config को यह जोड़ लिया है: सफलतापूर्वक
[program:uptime]
command=/usr/local/bin/node app.js
directory=/opt/uptime/
पर्यवेक्षक
मैं शुरू कर सकते हैं लेकिन अगर मैं supervisorctl स्थिति करना मुझे मिलता है:
uptime BACKOFF Exited too quickly (process log may have details)
यहाँ लॉग फाइल कर रहे हैं:
/var/log/supervisor/supervisord.log
2013-04-25 09:37:10,854 CRIT Supervisor running as root (no user in config file)
2013-04-25 09:37:10,866 INFO /var/tmp/supervisor.sock:Medusa (V1.1.1.1) started at Thu Apr 25 09:37:10 2013
Hostname: <unix domain socket>
Port:/var/tmp/supervisor.sock
2013-04-25 09:37:10,914 CRIT Running without any HTTP authentication checking
2013-04-25 09:37:10,915 INFO daemonizing the process
2013-04-25 09:37:10,917 INFO supervisord started with pid 28099
2013-04-25 09:37:10,918 INFO spawned: 'uptime' with pid 28101
2013-04-25 09:37:11,015 INFO exited: uptime (exit status 1; not expected)
2013-04-25 09:37:11,016 INFO received SIGCLD indicating a child quit
2013-04-25 09:37:12,019 INFO spawned: 'uptime' with pid 28103
2013-04-25 09:37:12,082 INFO exited: uptime (exit status 1; not expected)
2013-04-25 09:37:12,082 INFO received SIGCLD indicating a child quit
2013-04-25 09:37:14,086 INFO spawned: 'uptime' with pid 28105
2013-04-25 09:37:14,153 INFO exited: uptime (exit status 1; not expected)
2013-04-25 09:37:14,154 INFO received SIGCLD indicating a child quit
2013-04-25 09:37:17,157 INFO spawned: 'uptime' with pid 28107
2013-04-25 09:37:17,220 INFO exited: uptime (exit status 1; not expected)
2013-04-25 09:37:17,220 INFO received SIGCLD indicating a child quit
2013-04-25 09:37:18,221 INFO gave up: uptime entered FATAL state, too many start retries too quickly
2013-04-25 09:37:20,372 INFO localhost:0 - - [25/Apr/2013:14:37:20 -0600] "POST /RPC2 HTTP/1.0" 200 254
2013-04-25 09:37:20,374 INFO localhost:0 - - [25/Apr/2013:14:37:20 -0600] "POST /RPC2 HTTP/1.0" 200 1236
और प्रक्रिया लॉग क्या कहता है? – NilsH
मैंने मूल प्रश्न को लॉग के साथ संपादित किया ... पढ़ने के लिए आसान होना चाहिए। – ipengineer
क्या आपके पास /var/log/supervisord/uptime-stderr-XXXX.log है? यह क्या कहता है? – spotirca