summaryrefslogtreecommitdiff
path: root/src/shutdownd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shutdownd.c')
-rw-r--r--src/shutdownd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdownd.c b/src/shutdownd.c
index 13819417c3..7fd9573b2f 100644
--- a/src/shutdownd.c
+++ b/src/shutdownd.c
@@ -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] = '-';