Last active
January 28, 2018 14:40
-
-
Save dfrankland/9aa711101ff18bb9f92c to your computer and use it in GitHub Desktop.
Upstart script for OpenERP/Odoo on Ubuntu 14.04 (Should be placed in /etc/init/)
This file contains hidden or 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
#!upstart | |
description "odoo-server" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
#Respawn, with a limit of 10 times in a timespan of 90 seconds, after which it stops respawning. | |
respawn | |
respawn limit 10 90 | |
#Set user to odoo | |
setuid odoo | |
# Start job via the daemon control script. | |
exec /opt/odoo/server/odoo-server -c /etc/odoo-server.conf |
This file contains hidden or 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
#!upstart | |
description "openerp-server" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
#Respawn, with a limit of 10 times in a timespan of 90 seconds, after which it stops respawning. | |
respawn | |
respawn limit 10 90 | |
#Set user to openerp | |
setuid openerp | |
# Start job via the daemon control script. | |
exec /opt/openerp/server/openerp-server -c /etc/openerp-server.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment