]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: split out helper for --state= and allow resetting
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 13 May 2026 15:00:00 +0000 (17:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 14 May 2026 07:03:11 +0000 (09:03 +0200)
commit979ecbb14ee03150a277e021cdec902f7c40f481
tree3bdef4249f29a9fb3891288483f2537bc000f3cf
parent94e05aca0d1f8f37a4656947f6bf0aa77594364c
systemctl: split out helper for --state= and allow resetting

So far we'd reject --state=, but it seems nicer to make it reset the
setting as we generally do. The output variable is modified in place…
Option parsing isn't atomic anyway, so I think it's fine to to that.
man/systemctl.xml
src/systemctl/systemctl.c