mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
tree-wide: remove uses of --failed
It has been replaced by --state=failed.
This commit is contained in:
parent
5b23cef0bb
commit
ed1190498f
@ -96,7 +96,7 @@ _systemctl () {
|
|||||||
local i verb comps mode
|
local i verb comps mode
|
||||||
|
|
||||||
local -A OPTS=(
|
local -A OPTS=(
|
||||||
[STANDALONE]='--all -a --reverse --after --before --defaults --failed --force -f --full -l --global
|
[STANDALONE]='--all -a --reverse --after --before --defaults --force -f --full -l --global
|
||||||
--help -h --no-ask-password --no-block --no-legend --no-pager --no-reload --no-wall
|
--help -h --no-ask-password --no-block --no-legend --no-pager --no-reload --no-wall
|
||||||
--quiet -q --privileged -P --system --user --version --runtime --recursive -r --firmware-setup
|
--quiet -q --privileged -P --system --user --version --runtime --recursive -r --firmware-setup
|
||||||
--show-types -i --ignore-inhibitors --plain'
|
--show-types -i --ignore-inhibitors --plain'
|
||||||
|
@ -156,7 +156,7 @@ _systemctl_restartable_units(){
|
|||||||
{ while read -r a b; do echo -E - " $a"; done; } )) )
|
{ while read -r a b; do echo -E - " $a"; done; } )) )
|
||||||
}
|
}
|
||||||
|
|
||||||
_systemctl_failed_units() {_sys_failed_units=( ${${(f)"$(__systemctl list-units --failed)"}%% *} ) }
|
_systemctl_failed_units() {_sys_failed_units=( ${${(f)"$(__systemctl list-units --state=failed)"}%% *} ) }
|
||||||
_systemctl_unit_state() { typeset -gA _sys_unit_state; _sys_unit_state=( $(__systemctl list-unit-files) ) }
|
_systemctl_unit_state() { typeset -gA _sys_unit_state; _sys_unit_state=( $(__systemctl list-unit-files) ) }
|
||||||
|
|
||||||
local fun
|
local fun
|
||||||
@ -364,7 +364,6 @@ _arguments -s \
|
|||||||
'--reverse[Show reverse dependencies]' \
|
'--reverse[Show reverse dependencies]' \
|
||||||
'--after[Show units ordered after]' \
|
'--after[Show units ordered after]' \
|
||||||
'--before[Show units ordered before]' \
|
'--before[Show units ordered before]' \
|
||||||
'--failed[Show only failed units]' \
|
|
||||||
{-l,--full}"[Don't ellipsize unit names on output]" \
|
{-l,--full}"[Don't ellipsize unit names on output]" \
|
||||||
'--show-types[When showing sockets, show socket type]' \
|
'--show-types[When showing sockets, show socket type]' \
|
||||||
{-i,--ignore-inhibitors}'[When executing a job, ignore jobs dependencies]' \
|
{-i,--ignore-inhibitors}'[When executing a job, ignore jobs dependencies]' \
|
||||||
|
@ -53,7 +53,7 @@ Description=Testsuite service
|
|||||||
After=multi-user.target
|
After=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -x -c 'systemctl --failed --no-legend --no-pager > /failed ; echo OK > /testok'
|
ExecStart=/bin/sh -x -c 'systemctl --state=failed --no-legend --no-pager > /failed ; echo OK > /testok'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ Description=Testsuite service
|
|||||||
After=multi-user.target
|
After=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -x -c 'systemctl --failed --no-legend --no-pager > /failed ; echo OK > /testok'
|
ExecStart=/bin/sh -x -c 'systemctl --state=failed --no-legend --no-pager > /failed ; echo OK > /testok'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user