4
# Provides: openerp-server
5
# Required-Start: $syslog
6
# Required-Stop: $syslog
7
# Should-Start: $network
8
# Should-Stop: $network
9
# Default-Start: 2 3 4 5
11
# Short-Description: Enterprise Resource Management software
12
# Description: Open ERP is a complete ERP and CRM software.
15
PATH=/sbin:/bin:/usr/sbin:/usr/bin
16
DAEMON=/usr/bin/openerp-server
22
test -x ${DAEMON} || exit 0
28
echo -n "Starting ${DESC}: "
30
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
31
--chuid ${USER} --background --make-pidfile \
32
--exec ${DAEMON} -- --config=/etc/openerp-server.conf
38
echo -n "Stopping ${DESC}: "
40
start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid \
47
echo -n "Restarting ${DESC}: "
49
start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid \
54
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
55
--chuid ${USER} --background --make-pidfile \
56
--exec ${DAEMON} -- --config=/etc/openerp-server.conf
63
echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2