From c907d1c9c89417e05cb12a7d2b94182d00fd3cd6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 23 Feb 2011 13:41:43 +0100 Subject: [PATCH] cleanup init.d --- etc/init.d/pandora-encoding | 4 ++-- etc/init.d/pandora-tasks | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/init.d/pandora-encoding b/etc/init.d/pandora-encoding index e608e7f27..396a86ccc 100755 --- a/etc/init.d/pandora-encoding +++ b/etc/init.d/pandora-encoding @@ -47,10 +47,10 @@ do_start() # 1 if daemon was already running # 2 if daemon could not be started test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $DAEMON_USER:$DAEMON_USER /var/log/pandora) - start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \ + start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \ --exec $DAEMON --test > /dev/null \ || return 1 - start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER -startas $DAEMON \ + start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER --startas $DAEMON \ --make-pidfile --background --exec $DAEMON -- $DAEMON_ARGS \ || return 2 } diff --git a/etc/init.d/pandora-tasks b/etc/init.d/pandora-tasks index 564fee47d..5467b27af 100755 --- a/etc/init.d/pandora-tasks +++ b/etc/init.d/pandora-tasks @@ -50,7 +50,7 @@ do_start() start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \ --exec $DAEMON --test > /dev/null \ || return 1 - start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \ + start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER --startas $DAEMON \ --make-pidfile --background --exec $DAEMON -- $DAEMON_ARGS \ || return 2 }