diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-16 23:52:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-16 23:52:19 +0200 |
commit | 16061c20ddd8eba9b9e1ef89149c51114a8084ce (patch) | |
tree | d73421f6a6bc0afb680707eeabf9867e764fc2f0 /src/shutdownd.c | |
parent | 08e4b1c5c8aeb52e806b7cf994173660190e61ab (diff) |
shutdownd: kill /etc/nologin file before we go down
Diffstat (limited to 'src/shutdownd.c')
-rw-r--r-- | src/shutdownd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shutdownd.c b/src/shutdownd.c index 59439bca85..5ff9b4ae12 100644 --- a/src/shutdownd.c +++ b/src/shutdownd.c @@ -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..."); |