Configuration file examples
The following example shows a basic
P4 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
PATHenvironment variable is defined once, globally for both thep4dservice and itsp4pproxy. -
The name
testis used to refer to both thep4dservice and itsp4pproxy.
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"
}
}