Server block
A server block defines settings and variables that apply only to the specified type of service:
Type | Meaning |
---|---|
|
Helix Core Server, also called Helix Core Server |
|
Helix Proxy |
|
P4Broker |
|
Any other service |
A server block is defined using the following syntax:
server_type name { setting = value Environment { variable = value } }
The specified name
name must refer to services of a given
type, but the name can include different types of servers. This allows
you to control or query groups of heterogeneous servers that share the
same name.
For example, a configuration that defines p4d and proxy services
using the name main
can use a single command to stop p4d and proxy services without affecting any other services:
$ p4dctl stop main
You can define the following variables within server blocks.
Owner
and Execute
are required for all server
types.
Setting | Meaning |
---|---|
|
The owner of the service. The service is started under the owner’s account and with their
privileges. The user can also use Required. |
|
The path to the binary to execute when starting this server. Required. |
|
A string containing the arguments to be passed to the binary
specified with The string must be quoted. For example:
or
|
|
Set to Default: |
|
An octal value specifying the Setting this variable to 077 ensures that the files created by this service are only accessible to the owner of the service. |
|
A string containing a prefix to apply when checkpointing the
server or rotating the journal. This prefix is passed down to the
relevant Default: none |
|
Set to In the following example, the PrettyNames=true perforce callto:21397%201%200%2010[21397 1 0 10]:48 ? 00:00:00 p4d [blacksphere/1666] PrettyNames=false perforce callto:21725%201%200%2010[21725 1 0 10]:50 ? 00:00:00 /usr/sbin/p4d Default: true |