mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Only reload .conf files when not going to shutdown or reboot
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
5f026c8149
commit
2c12379a30
1 file changed
+5
-3
@@ -156,9 +156,11 @@ restart:
|
|||||||
/* Disable login in single-user mode as well as shutdown/reboot */
|
/* Disable login in single-user mode as well as shutdown/reboot */
|
||||||
nologin();
|
nologin();
|
||||||
|
|
||||||
/* Make sure to (re)load all *.conf in /etc/finit.d/ */
|
if (runlevel != 0 && runlevel != 6) {
|
||||||
if (conf_any_change())
|
/* Make sure to (re)load all *.conf in /etc/finit.d/ */
|
||||||
conf_reload();
|
if (conf_any_change())
|
||||||
|
conf_reload();
|
||||||
|
}
|
||||||
|
|
||||||
/* Reset once flag of runtasks */
|
/* Reset once flag of runtasks */
|
||||||
service_runtask_clean();
|
service_runtask_clean();
|
||||||
|
|||||||
Reference in new issue
Block a user