Hi, I'm configuring supervisord to check postfix status and restart it if needed.
Here is the supervisor daemon config file: [program:qa-postfix81-241] command=/usr/libexec/postfix/master -w -c /etc/postfix/81-241 autostart=true autorestart=true startretries=3 stderr_logfile=/var/log/supervisor/qa-postfix81-241.err.log stdout_logfile=/var/log/supervisor/qa-postfix81-241.out.log loglevel=info user=root After starting supervisord, postfix service is started, but its master process (dummy foreground) is restarted every second. 2017-11-29 12:28:26,216 INFO success: qa-postfix81-241 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2017-11-29 12:28:27,232 INFO exited: qa-postfix81-241 (exit status 1; not expected) 2017-11-29 12:28:45,379 INFO Included extra file "/etc/supervisord.d/qa-postfix81-241.ini" during parsing 2017-11-29 12:28:46,397 INFO spawned: 'qa-postfix81-241' with pid 26899 2017-11-29 12:28:47,459 INFO success: qa-postfix81-241 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2017-11-29 12:28:48,908 INFO exited: qa-postfix81-241 (exit status 1; not expected) 2017-11-29 12:28:48,910 INFO spawned: 'qa-postfix81-241' with pid 27003 2017-11-29 12:28:49,914 INFO success: qa-postfix81-241 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2017-11-29 12:28:51,059 INFO exited: qa-postfix81-241 (exit status 1; not expected) 2017-11-29 12:28:52,062 INFO spawned: 'qa-postfix81-241' with pid 27069 2017-11-29 12:28:53,104 INFO success: qa-postfix81-241 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2017-11-29 12:28:54,085 INFO exited: qa-postfix81-241 (exit status 1; not expected) 2017-11-29 12:28:54,811 INFO spawned: 'qa-postfix81-241' with pid 27101 2017-11-29 12:28:56,124 INFO success: qa-postfix81-241 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2017-11-29 12:28:56,830 INFO exited: qa-postfix81-241 (exit status 1; not expected) 2017-11-29 12:28:56,961 INFO spawned: 'qa-postfix81-241' with pid 27139 But, meanwhile, postfix background process is not restarted. And If I stop postfix background process, supervisor restarts it. [root@server log]# /usr/sbin/postfix -c /etc/postfix/81-241 status smtpd81-241/postfix-script: the Postfix mail system is running: PID: 29377 So, why in the supervisor log file the master process is being restarted every second? thanks in advance, pablo.
_______________________________________________ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users