From 6aa4bc10a38638554eea34eb7c27ec66edf532c5 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 17 Nov 2009 16:29:09 +0000 Subject: [PATCH] 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 --- debian/sogo.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/sogo.init b/debian/sogo.init index 744a058cd..32ea0f97a 100644 --- a/debian/sogo.init +++ b/debian/sogo.init @@ -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)