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:
parent
e34b6159f3
commit
d47b555bb6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user