[systemd-commits] src/shutdownd.c

Lennart Poettering lennart at kemper.freedesktop.org
Mon Aug 16 14:52:26 PDT 2010


 src/shutdownd.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 16061c20ddd8eba9b9e1ef89149c51114a8084ce
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Aug 16 23:52:19 2010 +0200

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

diff --git a/src/shutdownd.c b/src/shutdownd.c
index 59439bc..5ff9b4a 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...");
 


More information about the systemd-commits mailing list