green line
homephotoswoodfamilyericfaq

Mac OS X Perforce Server Setup



#!/bin/sh

# -----------------------------------------------------------------------------
# By: Eric Blom
# Email: webmaster@piap.com
#
# This script may be used to start the perforce server.
# -----------------------------------------------------------------------------

# -d run as daemon (fork first, then run)
# -p set port for perforce to use
# -r set server root directory
# -J specify where is journal file should be located

case "$1" in
'start')
        if /usr/bin/pgrep p4d >/dev/null 2>&1; then
                echo "$0: p4d is already running"
                echo "perhaps you want to $0 stop"
                exit 0
        else
        /Users/perforce/bin/p4d     -d \
                -p 192.168.3.4:21 \
                -r /Users/perforce/p4droot \
                -J /Users/perforce/p4djournal/journal \
                -L /Users/perforce/p4dlogs/errors
        fi
        ;;
'stop')
        echo "It is better for a perforce administrator to use"
        echo "the command: p4 admin stop."
        echo "Killing p4d process"
        pkill -P 1 p4d
        ;;

*)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;
esac
exit 0

# END OF SCRIPT
bottom rule
Valid HTML 4.01! Send comments to
webmaster@piap.com