]> git.ipfire.org Git - thirdparty/systemd.git/commit
Added option --check-inhibitors for non-tty usage
authorFelix Stupp <felix.stupp@outlook.com>
Thu, 29 Oct 2020 11:48:48 +0000 (12:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Jan 2021 15:07:36 +0000 (16:07 +0100)
commit4327574fc1093513badc2177f71cede2fc88c13c
treebc9ffc4c024a5b20d532aab512fd836812f96815
parent65ab27211c32089e038de7352091b46903c91ee6
Added option --check-inhibitors for non-tty usage

As described in #2680, systemctl did ignore inhibitors if it is not
attached to a tty to allow scripts to ignore inhibitors automatically.
This pull request preserves this behavior but allows scripts to
explicit check inhibitors if required.

The new parameter '--check-inhibitors=yes' enables this feature.
The old parameter '-i'/'--ignore-inhibitors' was deprecated in favor
of '--check-inhibitors=no', the default behaviour can be specified
with '--check-inhibitors=auto'.
The new parameter is also described in the documentations and shell
completions found here.
man/systemctl.xml
shell-completion/bash/systemctl.in
shell-completion/zsh/_systemctl.in
src/systemctl/systemctl-logind.c
src/systemctl/systemctl.c
src/systemctl/systemctl.h