Lines 17-23
Link Here
|
17 |
# make sure they can't break our startup by passing -d (which would |
17 |
# make sure they can't break our startup by passing -d (which would |
18 |
# cause incorrect PID to be written to pidfile), or the incorrect |
18 |
# cause incorrect PID to be written to pidfile), or the incorrect |
19 |
# depot root |
19 |
# depot root |
20 |
# P4P="`echo ${P4P} | sed -e 's#-d##' -e 's#-r [^[:space:]]*##'`" |
20 |
P4P="`echo ${P4P} | sed -e 's#-d##' -e 's#-r [^[:space:]]*##'`" |
21 |
start-stop-daemon --start --quiet --chuid perforce:perforce \ |
21 |
start-stop-daemon --start --quiet --chuid perforce:perforce \ |
22 |
--exec /usr/sbin/p4p \ |
22 |
--exec /usr/sbin/p4p \ |
23 |
-- ${P4P} -d |
23 |
-- ${P4P} -d |
Lines 27-35
Link Here
|
27 |
|
27 |
|
28 |
stop() { |
28 |
stop() { |
29 |
ebegin "Stopping Perforce SCM Proxy" |
29 |
ebegin "Stopping Perforce SCM Proxy" |
30 |
if ( ps -C p4p | grep 'p4p' > /dev/null ) |
30 |
if ( ps -C p4d | grep 'p4p' > /dev/null ) |
31 |
then |
31 |
then |
32 |
killall p4p |
32 |
killall p4d |
33 |
fi |
33 |
fi |
34 |
eend $? |
34 |
eend $? |
35 |
} |
35 |
} |