chiark / gitweb /
shutdown: respect the dry run option '-k'
[elogind.git] / src / shutdownd.c
index 1381941..7fd9573 100644 (file)
@@ -348,7 +348,7 @@ finish:
         if (unlink_nologin)
                 unlink("/run/nologin");
 
-        if (exec_shutdown) {
+        if (exec_shutdown && !c.dry_run) {
                 char sw[3];
 
                 sw[0] = '-';