#
# NB: Configuration is in /etc/conf.d/perforce-proxy
PIDFILE=/var/run/p4d.pid
depend() {
need net
}
stop() {
ebegin "Stopping Perforce SCM Proxy"
if ( ps -C p4d | grep 'p4p' > /dev/null )
start-stop-daemon --exec /usr/sbin/p4p
then
killall p4d
fi
eend $?