mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Minor refactor of error/debug messages
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
19b81cf434
commit
4b4572de4d
8 files changed
+26
-26
No files matched your search
@@ -114,13 +114,13 @@ void do_shutdown(shutop_t op)
|
||||
utmp_set_halt();
|
||||
|
||||
/* Here is where we signal watchdogd to do a forced reset for us */
|
||||
_d("Sending SIGTERM to all processes.");
|
||||
_d("Sending SIGTERM to all processes");
|
||||
kill(-1, SIGTERM);
|
||||
|
||||
/* Wait for WDT to timeout, should be no more than ~1 sec. */
|
||||
do_sleep(2);
|
||||
|
||||
_d("Sending SIGKILL to remaining processes.");
|
||||
_d("Sending SIGKILL to remaining processes");
|
||||
kill(-1, SIGKILL);
|
||||
|
||||
/* Exit plugins and API gracefully */
|
||||
@@ -159,7 +159,7 @@ void do_shutdown(shutop_t op)
|
||||
/* Call mdadm to mark any RAID array(s) as clean before halting. */
|
||||
mdadm_wait();
|
||||
|
||||
_d("%s.", op == SHUT_REBOOT ? "Rebooting" : "Halting");
|
||||
_d("%s", op == SHUT_REBOOT ? "Rebooting" : "Halting");
|
||||
if (op == SHUT_REBOOT)
|
||||
reboot(RB_AUTOBOOT);
|
||||
|
||||
|
||||
Reference in new issue
Block a user