chiark / gitweb /
systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested
[elogind.git] / src / systemctl.c
index a9a975ee8188648ceb775d5b3ce0e6e1bc801986..01deafe2a13b1d0edc3bcfe8633343ccc1eab471 100644 (file)
@@ -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)