Supervisor: How to stop a program under supervisor's control?

Created on 31 Aug 2018  路  1Comment  路  Source: Supervisor/supervisor

I am using supervisor in an alpine-based docker image to make just 2 things autostart (well, and get restarted if they die for some reason): php-fpm and crond.

my supervisor.conf looks like this:

[supervisord]
nodaemon=true

[program:php-fpm]
command=php-fpm -R -F
username=nginx
autorestart=true

[program:crond]
command=crond -f -L 15
username=root
autorestart=true

[supervisorctl]

It works alright, but sometimes I might need to stop cron from working.
How do I do that with supervisor?
I tried supervisor stop crond, but it results into this:
error: <class 'socket.error'>, [Errno 101] Network unreachable: file: /usr/lib/python2.7/socket.py line: 575

question

>All comments

Please ask questions about installing or using Supervisor on the supervisor-users mailing list. We use this issue tracker mainly for bugs in Supervisor itself.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkotsalainen picture mkotsalainen  路  28Comments

jbrehm picture jbrehm  路  64Comments

ghost picture ghost  路  25Comments

guettli picture guettli  路  96Comments

cclauss picture cclauss  路  62Comments