mirror of
https://github.com/troglobit/finit.git
synced 2026-11-20 19:41:51 +00:00
initctl: show the restart delay of a service with restart-max-sec
With restart-max-sec the delay before the next restart varies, and
nothing showed what it was or how far it could grow.
Show both in initctl status, for a service that has the setting:
Restarts : 7 (4/-1)
Restart in : 160 sec (max 300)
Add the D-Bus properties RestartDelay and RestartDelayMax for it, so
the status is the same when initctl goes over D-Bus.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
6 files changed
+30
-2
No files matched your search
+3
-1
@@ -17,7 +17,9 @@ All relevant changes are documented in this file.
|
||||
- Add `restart-max-sec`, a limit for the delay between restarts of a
|
||||
crashing service. When set, the delay doubles for each restart, from
|
||||
`restart-sec` up to the limit, and comes down again as the service keeps
|
||||
running. Issue #306
|
||||
running. `initctl status` shows the current delay and the limit, also
|
||||
available as the D-Bus properties `RestartDelay` and `RestartDelayMax`.
|
||||
Issue #306
|
||||
- Add `stop-scope`, which processes a stop applies to: `pgroup`, the process
|
||||
group of the main process (default), `process`, only the main process,
|
||||
`cgroup`, the cgroup of the service, or `mixed` like systemd. Issue #413
|
||||
|
||||
Reference in new issue
Block a user