core-system-scripts

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

commit 2c61879e1ae21017093829d798191b204f16cedf
parent 363456f7ddd1e52038388d60f998ae4f16d374bd
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Thu, 28 Jul 2022 23:23:37 +0200

Handle symlinked services

Diffstat:
Mcommand/s | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/command/s b/command/s @@ -49,7 +49,7 @@ 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 svcdir state active - for svcdir in /run/service/*(/); do + for svcdir in /run/service/*(-/); do s=$svcdir:t if sv_stat=( $(s6-svstat $svcdir) ); then state=$sv_stat[1]