#! /bin/sh # Copyright (c) 2000 Perforce Software Inc. All rights reserved. # # Author: Tony Smith <tony@perforce.com> # # Description: Perforce SysV init script for SuSE Linux. # # /etc/rc.d/init.d/p4d # . /etc/rc.config . /etc/p4d.conf return=$rc_done case "$1" in start) echo -n "Starting Perforce server (p4d)" startproc -u perforce -g perforce /usr/bin/p4d -q -d -r $P4ROOT -p $P4PORT -L $P4LOG -J $P4JOURNAL || return=$rc_failed echo -e "$return" ;; stop) echo -n "Shutting down Perforce Server (p4d)" killproc -TERM /usr/bin/p4d || return=$rc_failed echo -e "$return" ;; restart) $0 stop && $0 start || return=$rc_failed ;; status) checkproc /usr/bin/p4d && echo "Perforce server up" || echo "No Perforce server" ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 esac test "$return" = "$rc_done" || exit 1 exit 0
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 496 | Tony Smith | Set up integ path from Redhat dir to SuSE | ||
#1 | 495 | Tony Smith | Re-ordered directory structure for the ( hopefully ) last time | ||
//guest/tony_smith/perforce/RPM/RedHat/p4-suse/p4d.init | |||||
#2 | 493 | Tony Smith |
Changes for SuSE linux. The main area of difference is the layout of the SysV init scripts which on SuSE live in /sbin/init.d instead of /etc/rc.d/init.d. The symlinks they use to compensate for this confuse RPM so it's better to just put the files in the right place first time. The init script itself is a little different too as they use slightly different functions to start/stop processes. |
||
#1 | 490 | Tony Smith | Branched the Redhat config into the SuSE config | ||
//guest/tony_smith/perforce/RPM/RedHat/p4-redhat/p4d.init | |||||
#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 |