A simple init script that provide start, stop, restart and status commands for p4p. Application can be downloaded from: http://www.perforce.com/product/components/perforce-proxy
Copy p4proxy file to /etc/init.d and edit the P4P_* parameters. Following variables must be set:
Local proxy port number. Hostname/IP address would also be provided (e.g. host:port).
Remote perforce server. Hostname or IP address with the port number should be provided.
Local cache directory. Downloaded files will be written to that directory.
Path of p4p binary.
### P4P_LOG Path of the log file.
User name to run the script
p4p binary name
Starts the application:
/etc/init.d/p4proxy start
```
### Stop
Stops the application:
```
/etc/init.d/p4proxy stop
```
### Restart
Restarts the application:
```
/etc/init.d/p4proxy restart
```
### Status
Gets the status of the application (runnnig or stopped)
```
/etc/init.d/p4proxy status
```
## More information
More information about p4p usage can be gathered from:
http://www.perforce.com/perforce/r10.2/manuals/p4sag/09_p4p.html