1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-04 17:47:03 +03:00

systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested

This commit is contained in:
Kay Sievers 2010-07-08 21:30:32 +02:00 committed by Lennart Poettering
parent e34b6159f3
commit d47b555bb6

View 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)