Answer the question
In order to leave comments, you need to log in
How to correctly transfer all cron tasks under the control of Supervisor (linux)?
There are a lot of cron tasks on the server. To have control over them and have them (crowns) restart on error, many people advise Supervisor. I installed it according to the instructions, but I'm not sure that everything is correct now
. Let's say I have the following task in the crown:
* 0 * * * /usr/bin/php /var/www/mysite.com/cli/cli.php -a update-tickets
[program:update-tickets]
command=/usr/bin/php /var/www/mysite.com/cli/cli.php -a update-tickets
process_name=update-tickets
priority=1
numprocs=2
numprocs_start=1
autorestart=true
Answer the question
In order to leave comments, you need to log in
Supervisor is not Cron, it has other tasks.
A cron task is not a service.
What you are recommended is from the area of \u200b\u200b"scrub" and use the supervisor and its TICK_* events, but this is a bit of a path to the dark side :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question