p4dctl commands
On this page:
Syntax
| Category | Syntax | ||||||
|---|---|---|---|---|---|---|---|
|
Control services |
|
||||||
|
Checkpoints and journals |
The
|
||||||
|
Query services |
|
||||||
|
Arbitrary command on |
Executes the binary for the specified service matching The service binary is executed with the same environment variables that Examples:
|
Options
See also the meaning of variable names in Configuration file format.
| Options | Meaning |
|---|---|
-a
|
All servers. |
|
|
Path to the configuration file Default: |
-f
|
Force |
-n
|
Used with |
|
|
Path to the pid file directory. Default: |
|
|
Send output to syslog instead of |
-r
|
Restricts the arg arguments for exec to those explicitly included with the exec command. Without -r, if the service is configured with arguments, they are honored and any additional arg arguments in this exec command are appended. |
-t type
|
The service type of the p4d instance to run, such as p4d, p4p, p4broker, and other. |
|
|
Set debug level ( For more information, see the description of the
|
|
|
Display version and exit. |
Troubleshooting
Checkpointing failed
If you get an exit code error that says exited with status 255, it might be similar to the following:
p4dctl error:
Checkpointing ‘Edge-London' service failed. This needs investigation!
'Edge-London' p4d: '/usr/local/bin/p4d-2025.2 -jc -Z' exited with status 255.
Possible causes include
-
No valid ticket file could be located.
-
Replication is not working as shown by the
p4 pull -ljcommand.
To get additional information that you can share with Perforce Support, include -v 9 when running the command. For example:
p4dctl -v 9 checkpoint Edge-London
Not all services started
If you get an exit code error that says exited with status 255, it might be similar to the following:
$ p4dctl start commit-US
p4dctl error:
'commit-US' p4d: '/opt/perforce/sbin/p4d' exited with status 255.
Started 0 services.
p4dctl error:
Not all services started successfully.
Possible causes include:
-
Database has not been upgraded following an upgrade to a new P4 Server release.
Check the package upgrade messages for corrective action, possibly showing: sudo -u "perforce" p4dctl exec -t p4d commit-US -- -xu # server commit-US