mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
shutdownd: kill /etc/nologin file before we go down
This commit is contained in:
parent
08e4b1c5c8
commit
16061c20dd
@ -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...");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user