Commit 16061c20 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

shutdownd: kill /etc/nologin file before we go down

parent 08e4b1c5
......@@ -345,6 +345,9 @@ finish:
if (pollfd[i].fd >= 0)
close_nointr_nofail(pollfd[i].fd);
if (unlink_nologin)
unlink("/etc/nologin");
if (exec_shutdown) {
char sw[3];
......@@ -363,9 +366,6 @@ finish:
log_error("Failed to execute /sbin/shutdown: %m");
}
if (unlink_nologin)
unlink("/etc/nologin");
sd_notify(false,
"STATUS=Exiting...");
......
Markdown is supported
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