summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-07-08 21:30:32 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-08 21:36:40 +0200
commitd47b555bb6cabca024242e00b674da835938d286 (patch)
tree75ad4d0f294d5ee2d0fbb265d8244db4c4874550
parente34b6159f3c9c627df8ab476074796ea696eb287 (diff)
downloadsystemd-d47b555bb6cabca024242e00b674da835938d286.tar.gz
systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested
-rw-r--r--src/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index a9a975ee81..01deafe2a1 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -3156,7 +3156,7 @@ static int start_with_fallback(DBusConnection *bus) {
static int halt_main(DBusConnection *bus) {
int r;
- if (!arg_immediate)
+ if (!arg_dry && !arg_immediate)
return start_with_fallback(bus);
if (!arg_no_wtmp)