chiark / gitweb /
shutdown: respect the dry run option '-k'
[elogind.git] / src / shutdownd.c
index 13819417c3f5da1047aad14c5b9c129a909b894c..7fd9573b2fa30ba425241857ae2f2f16bb2ada10 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] = '-';