17
17
NAME=openerp-server
18
18
DESC=openerp-server
19
19
CONFIG=/etc/openerp/openerp-server.conf
20
LOGFILE=/var/log/openerp-server.log
20
LOGFILE=/var/log/openerp/openerp-server.log
23
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
29
echo -n "Starting ${DESC}: "
31
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
32
--chuid ${USER} --background --make-pidfile \
33
--exec ${DAEMON} -- --config=${CONFIG} \
40
echo -n "Stopping ${DESC}: "
42
start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid \
49
echo -n "Restarting ${DESC}: "
51
start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid \
56
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
57
--chuid ${USER} --background --make-pidfile \
58
--exec ${DAEMON} -- --config=${CONFIG} \
66
echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2
49
echo -n "Restarting ${DESC}: "
57
echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2