Commit abc7940c authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Close logs on reboot or shutdown

parent ce69c980
......@@ -166,6 +166,7 @@ int main(int argc, char ** argv)
if (reboot)
{
y_log_message(Y_LOG_LEVEL_INFO, "rebooting...");
y_close_logs();
reboot_initrd(true);
}
......@@ -173,6 +174,7 @@ int main(int argc, char ** argv)
if (shutdown)
{
y_log_message(Y_LOG_LEVEL_INFO, "shutting down...");
y_close_logs();
reboot_initrd(false);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment