| #!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 |
| #!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