4 # Provides: openerp-server
5 # Required-Start: $remote_fs $syslog
6 # Required-Stop: $remote_fs $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
19 CONFIG=/etc/openerp/openerp-server.conf
20 LOGFILE=/var/log/openerp/openerp-server.log
23 test -x ${DAEMON} || exit 0
28 echo -n "Starting ${DESC}: "
29 start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --chuid ${USER} --background --make-pidfile --exec ${DAEMON} -- --config=${CONFIG} --logfile=${LOGFILE}
34 echo -n "Stopping ${DESC}: "
35 start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid --oknodo
49 echo -n "Restarting ${DESC}: "
57 echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2