--- /etc/init.d/perforce-proxy 2004-07-12 11:12:57.974305664 +0200 +++ /usr/portage/dev-util/perforce-proxy/files/perforce-proxy-2003.1/init.d/perforce-proxy 2004-03-04 19:44:32.000000000 +0100 @@ -17,7 +17,7 @@ # make sure they can't break our startup by passing -d (which would # cause incorrect PID to be written to pidfile), or the incorrect # depot root - # P4P="`echo ${P4P} | sed -e 's#-d##' -e 's#-r [^[:space:]]*##'`" + P4P="`echo ${P4P} | sed -e 's#-d##' -e 's#-r [^[:space:]]*##'`" start-stop-daemon --start --quiet --chuid perforce:perforce \ --exec /usr/sbin/p4p \ -- ${P4P} -d @@ -27,9 +27,9 @@ stop() { ebegin "Stopping Perforce SCM Proxy" - if ( ps -C p4p | grep 'p4p' > /dev/null ) + if ( ps -C p4d | grep 'p4p' > /dev/null ) then - killall p4p + killall p4d fi eend $? }