@@ -84,13 +84,9 @@ It is *sourced* by `ssm`, so it is allowed to assign variables and define
|
||||
functions. Honoured hooks:
|
||||
|
||||
* `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.
|
||||
* `cleanup` — runs when the svc loop is being torn down (after the
|
||||
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
|
||||
the background and tracks it via a pidfile; with `service_pidfile` set, the
|
||||
|
||||
Reference in New Issue
Block a user