Don't reload *.conf files when changing to runlevel reboot

... or if someone manages (regression) to change to runlevel bootstrap.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-12 08:56:08 +02:00
1 parent 12d8ac2399
commit 41c003b221
1 file changed
+1
+1
View File
@@ -142,6 +142,7 @@ restart:
erase("/etc/nologin"); erase("/etc/nologin");
/* Make sure to (re)load all *.conf in /etc/finit.d/ */ /* Make sure to (re)load all *.conf in /etc/finit.d/ */
if (runlevel != 0 && runlevel != 6)
conf_reload_dynamic(); conf_reload_dynamic();
_d("Stopping services services not allowed in new runlevel ..."); _d("Stopping services services not allowed in new runlevel ...");