Debian init script was not using the $USER variable.

Monotone-Parent: bd24937e7ce408db324855032cc7f16806b6d54e
Monotone-Revision: ee484382abda554a929b3591e9b64d063cf30887

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-11-17T16:29:09
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-11-17 16:29:09 +00:00
parent 89eb0bb7e0
commit 6aa4bc10a3

4
debian/sogo.init vendored
View File

@@ -81,7 +81,7 @@ DAEMON_OPTS="-WOWorkersCount $PREFORK -WOPidFile $PIDFILE -WOLogFile $LOGFILE"
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS || true
start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS || true
echo "$NAME."
;;
stop)
@@ -93,7 +93,7 @@ case "$1" in
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON || true
sleep 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS || true
start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS || true
echo "$NAME."
;;
status)