From 874ac6f62f9a2e9622d2785e02a9e64dcb682b78 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Wed, 4 Jul 2007 19:11:17 +0000 Subject: [PATCH] another try --- debian/init.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/init.d b/debian/init.d index 4ef608b..4feeaee 100644 --- a/debian/init.d +++ b/debian/init.d @@ -35,7 +35,7 @@ case "$1" in echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- $DAEMON_OPTS - ps aux | grep $DAEMON | grep -v grep | tail -1 | awk '{ print $2 }' > /var/run/$NAME.pid + ps aux | grep $DAEMON | head -1 | awk '{ print $2 }' > /var/run/$NAME.pid echo "$NAME." ;; stop) @@ -50,7 +50,7 @@ case "$1" in --exec $DAEMON start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- $DAEMON_OPTS - ps aux | grep $DAEMON | grep -v grep | tail -1 | awk '{ print $2 }' > /var/run/$NAME.pid + ps aux | grep $DAEMON | head -1 | awk '{ print $2 }' > /var/run/$NAME.pid echo "$NAME." ;; *)