Attached is a working patch to the current anon-proxy.init Cheers, -- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek : :' : http://debian.org || http://rapidpacket.com/~xtat `. `' `- ]
*** anon-proxy.init 2005-02-05 05:02:57.253281112 -0500 --- anon-proxy.init-new 2005-02-05 05:38:13.967491640 -0500 *************** *** 13,23 **** PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/proxytest NAME=anon-proxy DESC="Anonymising Proxy Service" ! echo "!!! YOU HAVE TO CONFIGURE THE LOCAL PROXY PORT FIRST! CALL \"dpkg-reconfigure anon-proxy\" !!!" && exit 1 ! OPTIONS="-j -p #PORT# -n 132.199.134.2:3000 -a -d" test -f $DAEMON || exit 0 --- 13,24 ---- PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/proxytest + PNAME=$(basename $DAEMON) NAME=anon-proxy DESC="Anonymising Proxy Service" ! ! OPTIONS="-j -p 4001 -n 132.199.134.2:3000 -a -d" test -f $DAEMON || exit 0 *************** *** 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) *************** *** 54,64 **** # just the same as "restart". # echo -n "Restarting $DESC: $NAME" ! start-stop-daemon --stop --quiet --pidfile \ ! /var/run/$NAME.pid --exec $DAEMON sleep 1 ! start-stop-daemon --start --quiet --pidfile \ ! /var/run/$NAME.pid --exec $DAEMON echo "." ;; *) --- 55,66 ---- # just the same as "restart". # echo -n "Restarting $DESC: $NAME" ! start-stop-daemon --stop --quiet --name $PNAME --retry 30 >/dev/null 2>&1 || echo -n " not stopped" sleep 1 ! start-stop-daemon --start --quiet -c nobody:nogroup \ ! --exec $DAEMON -- $OPTIONS > /dev/null 2>&1 ! ! echo "." ;; *)
signature.asc
Description: Digital signature