-
-
Save moylop260/58136e7885b0446c740698cb0b0d72ac to your computer and use it in GitHub Desktop.
supervisor cron service with group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:odoo_cron] | |
environment = | |
ODOO_QUEUE_JOB_CHANNELS="root:4,root.sales:4,root.emails:4", | |
ODOO_QUEUE_JOB_PORT="8076" | |
user=odoo | |
command=/home/odoo/instance/odoo/odoo-bin -c /home/odoo/.openerp_serverrc --xmlrpc-port=8076 --longpolling-port=8077 --workers=0 --max-cron-threads=10 --pidfile=/tmp/odoo_cron.pid --load=web,queue_job | |
stdout_logfile=/var/log/supervisor/odoo_cron_stdout.log | |
stderr_logfile=/var/log/supervisor/odoo_cron_stdout.log | |
stdout_logfile_maxbytes=10MB | |
autostart=true | |
autorestart=true | |
exitcodes=0,2 | |
startsecs=9 | |
stopasgroup=true | |
killasgroup=true | |
priority=2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[supervisord] | |
nodaemon=true | |
logfile=/var/log/supervisor/supervisord.log | |
logfile_maxbytes=10MB | |
[group:odoo] | |
programs=odoo_main,odoo_cron | |
[program:odoo_main] | |
user=odoo | |
command=/home/odoo/instance/odoo/odoo-bin -c /home/odoo/.openerp_serverrc | |
stdout_logfile=/var/log/supervisor/odoo_stdout.log | |
stderr_logfile=/var/log/supervisor/odoo_stdout.log | |
stdout_logfile_maxbytes=10MB | |
autostart=true | |
autorestart=true | |
exitcodes=0,2 | |
startsecs=5 | |
stopasgroup=true | |
killasgroup=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supervisorctl stop odoo:* | |
# odoo:odoo_main: stopped | |
# odoo:odoo_cron: stopped | |
supervisorctl start odoo:* | |
# odoo:odoo_main: started | |
# odoo:odoo_cron: started |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment