On Sat, 05 Feb 2005, Todd Troxell wrote: > Attached is a working patch to the current anon-proxy.init > > *************** > *** 26,38 **** > case "$1" in > start) > echo -n "Starting $DESC: $NAME" > ! start-stop-daemon --start --quiet -c nobody:nogroup --pidfile > /var/run/$NAME.pid \ > --exec $DAEMON -- $OPTIONS > /dev/null 2>&1 > echo "." > ;; > stop) > echo -n "Stopping $DESC: $NAME" > ! /usr/bin/killall -9 proxytest || exit 0 > echo "." > ;; > #reload) > --- 27,39 ---- > case "$1" in > start) > echo -n "Starting $DESC: $NAME" > ! start-stop-daemon --start --quiet -c nobody:nogroup \ > --exec $DAEMON -- $OPTIONS > /dev/null 2>&1 > echo "." > ;; > stop) > echo -n "Stopping $DESC: $NAME" > ! start-stop-daemon --stop --quiet --name $PNAME --retry 30 >/dev/null > 2>&1 || echo -n " not stopped" > echo "." > ;; > #reload)
I guess you really want to use pidfiles, and not go (just) by name. Also Todd, I think everybody prefers unified diffs (-u). -- Peter -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]