Definition

Type: object

A wpm definition

Type: object

Information about what this definition executes

Type: boolean

Autostart this definition with wpmd

Type: array of array or null

Environment variables inherited by all commands in this service definition

No Additional Items

Each item of this array must be:

Type: array

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Tuple Validation

Item at 1 must be:
Item at 2 must be:

Type: object

Command executed by this service definition

Type: array of string or null

Arguments passed to the executable

No Additional Items

Each item of this array must be:

Type: array of array or null

Environment variables for this command

No Additional Items

Each item of this array must be:

Type: array

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Tuple Validation

Item at 1 must be:
Item at 2 must be:

Type: string

Executable name or absolute path to an executable

Type: array or null

Commands executed after ExecStart in this service definition

No Additional Items

Each item of this array must be:

Type: object

A wpm definition command

Same definition as ExecStart

Type: array or null

Commands executed before ExecStart in this service definition

No Additional Items

Each item of this array must be:

Type: object

A wpm definition command

Same definition as ExecStart

Type: array or null

Shutdown commands for this service definition

No Additional Items

Each item of this array must be:

Type: object

A wpm definition command

Same definition as ExecStart

Type: array or null

Post-shutdown cleanup commands for this service definition

No Additional Items

Each item of this array must be:

Type: object

A wpm definition command

Same definition as ExecStart

Default: null

Healthcheck for this service definition

Type: object

Type: object
No Additional Properties

Type: object

A wpm definition command

Same definition as ExecStart
Type: object
No Additional Properties

Type: object

A process liveness healthcheck either based on an automatic PID or an optional binary

Type: integerFormat: uint64

The number of seconds to delay before checking for liveness

Value must be greater or equal to 0.0

Type: string or null

An optional binary with which to check process liveness

Type: null

Type: enum (of string) Default: "Simple"

Type of service definition

Must be one of:

  • "Simple"
  • "Oneshot"
  • "Forking"

Type: enum (of string) Default: "Never"

Restart strategy for this service definition

Must be one of:

  • "Never"
  • "Always"
  • "OnFailure"

Type: integer or nullFormat: uint64

Time to sleep in seconds before attempting to restart service (default: 1s)

Type: string or null

Working directory for this service definition

Type: object

Information about this definition and its dependencies

Type: string or null

Description of this definition

Type: string

Name of this definition, must be unique

Type: array of string or null

Dependencies of this definition, validated at runtime

No Additional Items

Each item of this array must be:

Type: string