Configuration file examples
The following example shows a basic
Helix Core Server
(p4d) configuration file, p4dctl.conf located in the /etc/perforce directory.
minimal example
p4d minimum
{
Owner = perforce
Execute = /opt/perforce/sbin/p4d
Environment
{
P4ROOT = /home/perforce/p4-main
P4PORT = 1666
PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin
}
}
more advanced example
In this more advanced example,
-
the PATH environment variable is defined once, globally for both the service (
p4d) and its proxy (p4p) -
the name
testis used to refer to both the service (p4d) and its proxy (p4p).
Environment
{
PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin
}
p4d test
{
Owner = perforce
Execute = /opt/perforce/sbin/p4d
Environment
{
P4ROOT = /home/perforce/p4-main
P4PORT = "localhost:1667"}
}
}
p4p test
{
Owner = perforce
Execute = /opt/perforce/sbin/p4p
Environment
{
P4ROOT = /home/perforce/proxy-main
P4PORT = 1666
P4TARGET = "localhost:1667"
}
}






