Keep-alive configuration for jobs. Multiple conditions are combined with OR logic.
Fields
| Field Name | Description |
|---|---|
runContinuously - Boolean
|
If true, keep the job running continuously. |
successfulExit - Boolean
|
If true, restart when the job exits successfully (status 0). If false, restart on non-zero exit status. Implies the job will run at least once to establish an exit status. |
networkState - Boolean
|
If true, keep the job alive while the network is available. If false, keep it alive when the network is unavailable. |
pathState - [PathState!]
|
Keep the job alive based on whether certain paths exist. |
otherJobEnabled - [OtherJobEnabled!]
|
Keep the job alive based on whether other jobs are enabled or disabled. |
Used by
SystemServiceMacOStype: MacOS-specific attributes for a System Service.
Example
Example
{
"runContinuously": false,
"successfulExit": false,
"networkState": false,
"pathState": [PathState],
"otherJobEnabled": [OtherJobEnabled]
}