[IMP] Debian init script now has LOGFILE variable.

bzr revid: niels@bubbles-it.be-20110308105236-0j0488uq0sx0lld6
This commit is contained in:
Niels Huylebroeck 2011-03-08 11:52:36 +01:00
parent 081cd65e36
commit dee15c6342
1 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ DAEMON=/usr/bin/openerp-server
NAME=openerp-server
DESC=openerp-server
CONFIG=/etc/openerp-server.conf
LOGFILE=/var/log/openerp-server.log
USER=openerp
test -x ${DAEMON} || exit 0
@ -30,7 +31,7 @@ case "${1}" in
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- --config=$CONFIG \
--logfile=/var/log/openerp-server.log
--logfile=$LOGFILE
echo "${NAME}."
;;
@ -55,7 +56,7 @@ case "${1}" in
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- --config=$CONFIG \
--logfile=/var/log/openerp-server.log
--logfile=$LOGFILE
echo "${NAME}."
;;