--- thttpd-current/debian/thttpd.init.d.orig 2009-08-12 13:52:08.000000000 +0300 +++ thttpd-current/debian/thttpd.init.d 2009-08-12 13:54:32.000000000 +0300 @@ -36,7 +36,7 @@ stop) echo -n "Stopping $DESC: " - if ps ax | grep "$(cat $PIDFILE)" | grep -qv grep + if ps ax | grep -q "^ *$(cat $PIDFILE) " then start-stop-daemon -K -q -p $PIDFILE -x $DAEMON --signal 10 fi