Skip to content

Commit

Permalink
[MERGE] debian/init: merged Niels Huylebroeck change to factor out lo…
Browse files Browse the repository at this point in the history
…g and config files as parameter.

bzr revid: vmt@openerp.com-20110308145129-9z1c58m1vk512zlg
  • Loading branch information
Vo Minh Thu committed Mar 8, 2011
2 parents 04eaeaa + dee15c6 commit adc6dec
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions debian/openerp-server.init
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
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
Expand All @@ -29,8 +30,8 @@ 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 \
--logfile=/var/log/openerp-server.log
--exec ${DAEMON} -- --config=${CONFIG} \
--logfile=${LOGFILE}

echo "${NAME}."
;;
Expand All @@ -54,8 +55,8 @@ 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 \
--logfile=/var/log/openerp-server.log
--exec ${DAEMON} -- --config=${CONFIG} \
--logfile=${LOGFILE}

echo "${NAME}."
;;
Expand Down

0 comments on commit adc6dec

Please sign in to comment.