mirror of
https://github.com/troglobit/finit.git
synced 2026-11-20 19:41:51 +00:00
service: spell the restart_sec: option restart-sec:
restart_sec: was the only setting in snake_case. Every other option
of the line-based format is in kebab-case, and so is the block format,
restart-sec = SEC.
Take restart-sec: and keep restart_sec: as an alias, so a .conf from
an older Finit loads as before:
service restart-sec:10 foo -- Foo daemon
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
6 files changed
+34
-11
No files matched your search
@@ -11,6 +11,9 @@ All relevant changes are documented in this file.
|
||||
- `shutdown` now takes a time, `now`, `+MIN`, or `HH:MM`, and a message.
|
||||
Finit warns logged-in users as the time approaches, refuses new logins
|
||||
from five minutes before, and `shutdown -c` cancels. Issue #149
|
||||
- The `restart_sec:` option of the line-based format is now spelled
|
||||
`restart-sec:`, kebab-case like every other setting. The old spelling
|
||||
is still accepted
|
||||
- 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
|
||||
|
||||
Reference in new issue
Block a user