mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
Add support for optional reboot delay
Slightly different take on issue #334 making it optional, possible to enable per system. reboot-delay <0-60> # default: 0 (disabled) When enabled (non-zero), runs after filesystems have been unmounted, the root filesystems has been remounted read-only, and sync(2) has been called, twice. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
c22d123ab0
commit
311c6be9aa
5 files changed
+42
No files matched your search
@@ -764,6 +764,11 @@ static int parse_static(char *line, int is_rcsd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (MATCH_CMD(line, "reboot-delay ", x)) {
|
||||
syncsec = strtonum(strip_line(x), 0, 60, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Periodic check and instability index leveler, seconds
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user