summaryrefslogtreecommitdiff
path: root/devel/p4p/files/perforce.sh.in
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2005-01-18 15:43:36 +0000
committerLars Thegler <lth@FreeBSD.org>2005-01-18 15:43:36 +0000
commita306f64971833bdabd84eeabcd9995cf27820aed (patch)
tree39bc9c5d9b5c792ce87779b6df47647ef167b640 /devel/p4p/files/perforce.sh.in
parentMark FORBIDDEN due to exploitable vulnerability (diff)
- Start p4web from rc.d script [1]
- Assume maintainership Submitted by: Mark Santcroos <marks@ripe.net> [1] Reviewed by: tobez
Notes
Notes: svn path=/head/; revision=126720
Diffstat (limited to 'devel/p4p/files/perforce.sh.in')
-rw-r--r--devel/p4p/files/perforce.sh.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/devel/p4p/files/perforce.sh.in b/devel/p4p/files/perforce.sh.in
index e32da8484282..f0ed1db1c3b5 100644
--- a/devel/p4p/files/perforce.sh.in
+++ b/devel/p4p/files/perforce.sh.in
@@ -5,6 +5,7 @@
p4d=@PREFIX@/sbin/p4d
p4ftpd=@PREFIX@/sbin/p4ftpd
p4p=@PREFIX@/sbin/p4p
+p4web=@PREFIX@/sbin/p4web
case $1 in
start)
@@ -21,6 +22,10 @@ start)
echo -n ' p4p'
$p4p $PERFORCE_PROXY_OPTIONS
fi
+ if [ -x $p4web -a x$PERFORCE_WEB_START = xyes ]; then
+ echo -n ' p4web'
+ su -fm $PERFORCE_USER -c "$p4web $PERFORCE_WEB_OPTIONS > /dev/null 2>&1 &"
+ fi
;;
stop)
@@ -34,6 +39,9 @@ stop)
if [ -x $p4p ]; then
killall -u 0 p4p > /dev/null 2>&1 && echo -n ' p4p'
fi
+ if [ -x $p4web ]; then
+ killall -u $PERFORCE_USER p4web > /dev/null 2>&1 && echo -n ' p4web'
+ fi
;;
restart)
$0 stop