blob: d926fc514ce21f1a01edfd3eba880bd9902cd693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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 $?
}
|