commit dc0fb457193ee12f28bc463f50684454b2173e11
parent fca0a5cf6b09b4284d950c80289f386b4b67d047
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Fri, 29 Jul 2022 02:19:17 +0200
Ignore s6-rc internal services when determining whether bundle is fully down or up.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/command/s b/command/s
@@ -51,6 +51,7 @@ process_bundles() {
bundle_content=( ${(f)bundle_services[$b]} )
count=( 0 0 ) # Active, inactive
for s in $bundle_content; do
+ [[ $s == s6rc-* ]] && continue # skip s6-rc internal services
: $(( count[${service_active[$s]:-2}]++ ))
done
if (($count[1] == 0)); then