mirror of
https://github.com/systemd/systemd
synced 2026-04-03 05:34:50 +02:00
Compare commits
6 Commits
6a05abb9b4
...
b131e8d3a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b131e8d3a4 | ||
|
|
69ab56aa19 | ||
|
|
1e29036afc | ||
|
|
49ff5ad6e6 | ||
|
|
7112e08cec | ||
|
|
60c68080b7 |
@ -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'
|
[STANDALONE]='time blame unit-files unit-paths exit-status compare-versions calendar timestamp timespan pcrs nvpcrs srk has-tpm2 smbios11 chid image-policy'
|
||||||
[CRITICAL_CHAIN]='critical-chain'
|
[CRITICAL_CHAIN]='critical-chain'
|
||||||
[DOT]='dot'
|
[DOT]='dot'
|
||||||
[DUMP]='dump'
|
[DUMP]='dump'
|
||||||
|
|||||||
@ -11,6 +11,11 @@
|
|||||||
_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
|
||||||
@ -40,6 +45,13 @@
|
|||||||
_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
|
||||||
@ -82,6 +94,13 @@
|
|||||||
'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,7 +359,10 @@ 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 || :
|
||||||
systemctl status -a --state active,running,plugged >/dev/null
|
# Ditto - there is a window between the first ListUnitsByByPatterns and the querying of individual units in
|
||||||
|
# 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