blob: d926fc514ce21f1a01edfd3eba880bd9902cd693 [file] [log] [blame]
#!/sbin/runscript
# Additional options that are passed to the daemon.
DAEMON_OPTS="-c ${CONFIGFILE}"
depend() {
after postgresql
}
start() {
ebegin "Starting openerp server"
start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/bin/openerp-server \
--make-pidfile --user "${USER}" --background -- ${DAEMON_OPTS}
eend $?
}
stop() {
ebegin "Stopping openerp server"
start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --signal 9
rm -f "${PIDFILE}"
eend $?
}