mirror of
https://github.com/systemd/systemd
synced 2026-04-03 13:44:55 +02:00
Compare commits
No commits in common. "b131e8d3a478a793956ecd4ab2138e3c4ce5a284" and "6a05abb9b49900774bc0323316103dceab0c1a7d" have entirely different histories.
b131e8d3a4
...
6a05abb9b4
@ -68,7 +68,7 @@ _systemd_analyze() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
local -A VERBS=(
|
local -A VERBS=(
|
||||||
[STANDALONE]='time blame unit-files unit-paths exit-status compare-versions calendar timestamp timespan pcrs nvpcrs srk has-tpm2 smbios11 chid image-policy'
|
[STANDALONE]='time blame unit-files unit-paths exit-status compare-versions calendar timestamp timespan pcrs nvpcrs srk has-tpm2 smbios11 chid'
|
||||||
[CRITICAL_CHAIN]='critical-chain'
|
[CRITICAL_CHAIN]='critical-chain'
|
||||||
[DOT]='dot'
|
[DOT]='dot'
|
||||||
[DUMP]='dump'
|
[DUMP]='dump'
|
||||||
|
|||||||
@ -11,11 +11,6 @@
|
|||||||
_files -W '(/run/systemd/ /etc/systemd/ /usr/lib/systemd/)' -P 'systemd/'
|
_files -W '(/run/systemd/ /etc/systemd/ /usr/lib/systemd/)' -P 'systemd/'
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_systemd-analyze_inspect-elf] )) ||
|
|
||||||
_systemd-analyze_inspect-elf() {
|
|
||||||
_files
|
|
||||||
}
|
|
||||||
|
|
||||||
(( $+functions[_systemd-analyze_critical-chain] )) ||
|
(( $+functions[_systemd-analyze_critical-chain] )) ||
|
||||||
_systemd-analyze_critical-chain() {
|
_systemd-analyze_critical-chain() {
|
||||||
local -a _units
|
local -a _units
|
||||||
@ -45,13 +40,6 @@
|
|||||||
_describe -t groups 'file system groups' _groups || compadd "$@"
|
_describe -t groups 'file system groups' _groups || compadd "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_systemd-analyze_architectures] )) ||
|
|
||||||
_systemd-analyze_architectures() {
|
|
||||||
local -a _architectures
|
|
||||||
_architectures=( $(systemd-analyze --quiet --no-pager --no-legend architectures | { while read -r a b; do echo " $a"; done; } 2>/dev/null) )
|
|
||||||
_describe -t architectures 'architectures' _architectures || compadd "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
(( $+functions[_systemd-analyze_plot] )) ||
|
(( $+functions[_systemd-analyze_plot] )) ||
|
||||||
_systemd-analyze_plot() {
|
_systemd-analyze_plot() {
|
||||||
local -a _options
|
local -a _options
|
||||||
@ -94,13 +82,6 @@
|
|||||||
'dlopen-metadata:Parse and print ELF dlopen metadata'
|
'dlopen-metadata:Parse and print ELF dlopen metadata'
|
||||||
'has-tpm2:Report whether TPM2 support is available'
|
'has-tpm2:Report whether TPM2 support is available'
|
||||||
'transient-settings:List transient settings for unit types'
|
'transient-settings:List transient settings for unit types'
|
||||||
'architectures:List known architectures'
|
|
||||||
'smbios11:List strings passed via SMBIOS Type #11'
|
|
||||||
'chid:List local CHIDs'
|
|
||||||
'compare-versions:Compare two version strings'
|
|
||||||
'image-policy:Analyze image policy string'
|
|
||||||
'pcrs:Show TPM2 PCRs and their names'
|
|
||||||
'srk:Write TPM2 SRK (to FILE)'
|
|
||||||
# log-level, log-target, service-watchdogs have been deprecated
|
# log-level, log-target, service-watchdogs have been deprecated
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -359,10 +359,7 @@ systemctl show systemd-logind.service
|
|||||||
systemctl status
|
systemctl status
|
||||||
# Ignore the exit code in this case, as it might try to load non-existing units
|
# Ignore the exit code in this case, as it might try to load non-existing units
|
||||||
systemctl status -a >/dev/null || :
|
systemctl status -a >/dev/null || :
|
||||||
# Ditto - there is a window between the first ListUnitsByByPatterns and the querying of individual units in
|
systemctl status -a --state active,running,plugged >/dev/null
|
||||||
# which some units might change their state (e.g. running -> stop-sigterm), which then causes systemctl to
|
|
||||||
# return EC > 0
|
|
||||||
systemctl status -a --state active,running,plugged >/dev/null || :
|
|
||||||
systemctl status "systemd-*.timer"
|
systemctl status "systemd-*.timer"
|
||||||
systemctl status "systemd-journald*.socket"
|
systemctl status "systemd-journald*.socket"
|
||||||
systemctl status "sys-devices-*-ttyS0.device"
|
systemctl status "sys-devices-*-ttyS0.device"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user