... | ... | @@ -13,6 +13,8 @@ Defines the startup strategy of the task. |
|
|
Defines how to start the task.
|
|
|
|
|
|
- `"exec": "system"`: Starts an external executable.
|
|
|
- `"exec": "shell"`: Starts an external executable via `popen` in the current system shell.
|
|
|
- The "`args`" list should be joined and instead just separated by spaces for the shell to interpret the command.
|
|
|
- `"exec": "stop"`: Stops (= kill & reload) tasks by config file name i. e. on a schedule.
|
|
|
- Example: `{ "type": "schedule", "schedule": "* 0 * * *", "exec": "stop", "args": [ "has-to-restart-sometimes" ], "cwd": "/tmp" }`
|
|
|
- `"args"` may contain one or more config files names without the json extension.
|
... | ... | |