summaryrefslogtreecommitdiffstats
path: root/devel/p4web/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p4web/files')
-rw-r--r--devel/p4web/files/perforce.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/p4web/files/perforce.sh.in b/devel/p4web/files/perforce.sh.in
index 4590c51..e32da84 100644
--- a/devel/p4web/files/perforce.sh.in
+++ b/devel/p4web/files/perforce.sh.in
@@ -40,8 +40,14 @@ restart)
sleep 1
$0 start
;;
+checkpoint)
+ [ -f @PREFIX@/etc/perforce.conf ] && . @PREFIX@/etc/perforce.conf
+ if [ -x $p4d -a x$PERFORCE_START = xyes ]; then
+ su -fm $PERFORCE_USER -c "$p4d -r $PERFORCE_ROOT -jc"
+ fi
+ ;;
*)
- echo "usage: $0 {start|stop|restart}"
+ echo "usage: $0 {start|stop|restart|checkpoint}"
exit 64
;;
esac
OpenPOWER on IntegriCloud