[IMP] Debian init script now has LOGFILE variable.
bzr revid: niels@bubbles-it.be-20110308105236-0j0488uq0sx0lld6
This commit is contained in:
parent
081cd65e36
commit
dee15c6342
|
@ -17,6 +17,7 @@ DAEMON=/usr/bin/openerp-server
|
||||||
NAME=openerp-server
|
NAME=openerp-server
|
||||||
DESC=openerp-server
|
DESC=openerp-server
|
||||||
CONFIG=/etc/openerp-server.conf
|
CONFIG=/etc/openerp-server.conf
|
||||||
|
LOGFILE=/var/log/openerp-server.log
|
||||||
USER=openerp
|
USER=openerp
|
||||||
|
|
||||||
test -x ${DAEMON} || exit 0
|
test -x ${DAEMON} || exit 0
|
||||||
|
@ -30,7 +31,7 @@ case "${1}" in
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
|
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
|
||||||
--chuid ${USER} --background --make-pidfile \
|
--chuid ${USER} --background --make-pidfile \
|
||||||
--exec ${DAEMON} -- --config=$CONFIG \
|
--exec ${DAEMON} -- --config=$CONFIG \
|
||||||
--logfile=/var/log/openerp-server.log
|
--logfile=$LOGFILE
|
||||||
|
|
||||||
echo "${NAME}."
|
echo "${NAME}."
|
||||||
;;
|
;;
|
||||||
|
@ -55,7 +56,7 @@ case "${1}" in
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
|
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
|
||||||
--chuid ${USER} --background --make-pidfile \
|
--chuid ${USER} --background --make-pidfile \
|
||||||
--exec ${DAEMON} -- --config=$CONFIG \
|
--exec ${DAEMON} -- --config=$CONFIG \
|
||||||
--logfile=/var/log/openerp-server.log
|
--logfile=$LOGFILE
|
||||||
|
|
||||||
echo "${NAME}."
|
echo "${NAME}."
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue