#! /bin/sh # # p4d Start the p4d daemon # # Author: Tony Smith <tony@smee.org> # # chkconfig: 345 85 15 # description: Starts the Perforce server process # # processname: p4d # config: /etc/p4d.conf # Some junk to make the rc script behave # daemon - makes rc startup work properly # killproc - makes rc shutdown work properly # Source function library. . /etc/rc.d/init.d/functions RETVAL=0 # See how we were called. case "$1" in start) echo -n "Starting Perforce server: " su - perforce -c ". /etc/p4d.conf; p4d -d" > /dev/null touch /var/lock/subsys/p4d echo_success echo ;; stop) echo -n "Stopping Perforce server: " su - perforce -c ". /etc/p4d.conf; p4 admin stop" >/dev/null rm /var/lock/subsys/p4d echo_success echo ;; status) status p4d RETVAL=$? ;; restart) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: p4d {start|stop|status|restart}" exit 1 esac exit $REVAL
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 497 | Tony Smith | Set up integ path from SuSE to Redhat | ||
#1 | 495 | Tony Smith | Re-ordered directory structure for the ( hopefully ) last time | ||
//guest/tony_smith/perforce/RPM/RedHat/p4-redhat/p4d.init | |||||
#2 | 494 | Tony Smith | Pull changes from SuSE into RedHat | ||
#1 | 489 | Tony Smith | Renamed the path for the sysadmin scripts etc | ||
//guest/tony_smith/perforce/RPM/RedHat/p4-2000.1/p4d.init | |||||
#1 | 488 | Tony Smith |
Added the files in the distribution tarball individually so the RedHat <-> SuSE differences can be tracked |