core-system-scripts

Scripts submodule for the core-system repository
git clone https://ccx.te2000.cz/git/core-system-scripts
Log | Files | Refs

commit 9d597e7b02c88fd3c47767d2ec0e7c56c217e0ff
parent b315e2256586bec9284e73a47747f6771972b1ef
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Fri, 29 Jul 2022 02:48:33 +0200

Print longruns in alphabetic order

Diffstat:
Mcommand/s | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/command/s b/command/s @@ -118,7 +118,8 @@ show_longruns() { local -a sv_stat fmt_active=( '%F{yellow}%BA%b%f' '%F{cyan}I%f' '%F{magenta}-%f' ) local -A fmt_up=( up '%F{green}%BU%b%f' down '%F{red}D%f' starting '%F{magenta}%B?%b%f' err '%K{red}X%k' ) local s state active pre post=%s - for s state in "${(@kv)service_stat}"; do + for s in $s6_services; do + state=$service_stat[$s] if (($+service_type[$s])); then active=${service_active[$s]:-2} else @@ -145,7 +146,7 @@ main() { show_oneshots show_longruns - diff -u <(s6-rc listall ok-all) <(s6-rc -a list) + #diff -u <(s6-rc listall ok-all) <(s6-rc -a list) } main "$@"