P4DCTL README ------------- P4DCTL is a program for starting and stopping Perforce services on Unix platforms. It's designed to be used both by root and non-root users and to integrate well with init.d or rc scripts for boot/shutdown. It allows the system administrator to specify the Perforce services they wish to start on the box in a single configuration file (/etc/p4d.conf) BUILDING FROM SOURCE -------------------- To build P4DCTL, you'll need Perforce Jam, and the Perforce API. Once you've installed both, simply use: jam -sP4=<path to Perforce API> You may also wish to specify your operating system version. For example, for a Linux 2.6 build, I might use: jam -sP4=<path to Perforce API> -sOSVER=26 Then to install the binary, run the command below as root: jam -sP4=<path to Perforce API> -sOSVER=<version> install This will install the binary in /usr/local/bin and make it a setuid root executable. I believe the program to be secure, though obviously I can't guarantee that. INSTALLING A PRE-BUILT BINARY ----------------------------- If you're using a pre-built binary, just copy it into /usr/local/bin, and run the following commands: chown root:0 /usr/local/bin/p4dctl chmod 4711 /usr/local/bin/p4dctl CONFIGURATION ------------- The simplest way to get started is to copy the p4d.conf.sample from the distribution into /etc/p4d.conf and edit it to reflect your needs. USAGE ----- See 'p4dctl -h' for command-line syntax
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 7841 | brett |
Initial branch of the Unix Perforce Server Control tool. See if this can be made to operate under Windows. |
||
//guest/tony_smith/perforce/p4dctl/src/README | |||||
#1 | 5945 | Tony Smith |
Release p4dctl, a program for starting/stopping Perforce services on Unix operating systems. Similar to, and developed in concert with, Sven Erik Knop's p4dcfg. For example: p4dctl start -a Can start multiple P4D, P4P, P4Web, or P4FTP servers in one easy command line. It can be executed by root, or by the 'owners' of the configured services and it maintains pidfiles no matter who uses it (so they remain accurate). An init script using p4dctl will typically just use: p4dctl start -a p4dctl stop -a p4dctl restart -a And check the exit status. |