keep it simple

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-30 11:42:13 +00:00
parent 0bf7085d78
commit e2702736b8
-4
View File
@@ -84,13 +84,9 @@ It is *sourced* by `ssm`, so it is allowed to assign variables and define
functions. Honoured hooks: functions. Honoured hooks:
* `pre_<action>` / `post_<action>` — run before/after any action. * `pre_<action>` / `post_<action>` — run before/after any action.
* `service::<action>` — highest-precedence override for any action,
e.g. `service::pre_start`. Takes precedence over `<action>` and over the
overloadable defaults.
* `setup` — run at the top of every respawn loop. * `setup` — run at the top of every respawn loop.
* `cleanup` — runs when the svc loop is being torn down (after the * `cleanup` — runs when the svc loop is being torn down (after the
standard stop logic and any cgroup-cleanup). standard stop logic and any cgroup-cleanup).
* `service::setup`/`service::cleanup` work too.
`service_command` may be a single string or an array. If set, ssm runs it in `service_command` may be a single string or an array. If set, ssm runs it in
the background and tracks it via a pidfile; with `service_pidfile` set, the the background and tracks it via a pidfile; with `service_pidfile` set, the