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
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.