You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,4 +91,15 @@ Default runtimes:
91
91
Service <service-name>:
92
92
<runtime>: <path or "error: <message>">
93
93
…
94
-
```
94
+
```
95
+
96
+
### 4. Starting a Service
97
+
98
+
When --start and/or --supervise flags are provided --service is a required argument.
99
+
100
+
- It starts the executable `services.<service-name>.executable` with the specified arguments from `services.<service-name>.executable_args`.
101
+
102
+
- If the `--supervise` flag is provided, it will run the health checks, defined in `services.<service-name>.health_checks` on service start to make sure the service is operational. If any of the checks fail the service will be stopped. `Type=notify` should be used in the systemd unit(see example in `examples/systemd` directory).
103
+
104
+
- While using `--supervise` and health checks, make sure that systemd service has enough `TimeoutStartSec`. ideally should be a combined timeout of all health checks.
0 commit comments