[IMP] Debian init script now has variable for config file location

bzr revid: niels@bubbles-it.be-20110308105152-w9uodtf166u1827x
This commit is contained in:
Niels Huylebroeck 2011-03-08 11:51:52 +01:00
parent 958038785b
commit 081cd65e36
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/openerp-server
NAME=openerp-server
DESC=openerp-server
CONFIG=/etc/openerp-server.conf
USER=openerp
test -x ${DAEMON} || exit 0
@ -29,7 +29,7 @@ case "${1}" in
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- --config=/etc/openerp-server.conf \
--exec ${DAEMON} -- --config=$CONFIG \
--logfile=/var/log/openerp-server.log
echo "${NAME}."
@ -54,7 +54,7 @@ case "${1}" in
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- --config=/etc/openerp-server.conf \
--exec ${DAEMON} -- --config=$CONFIG \
--logfile=/var/log/openerp-server.log
echo "${NAME}."