a6-rc-up-tree wait for lock if needed

This commit is contained in:
Daniel Barlow 2024-06-15 15:36:07 +01:00
parent 06d28e9b08
commit c4185617c0
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ service=$1
blocks="" blocks=""
for controlled in $(cd /run/services/controlled/ && echo *); do for controlled in $(cd /run/services/controlled/ && echo *); do
down=$(s6-rc -un0 change $controlled) down=$(s6-rc -b -un0 change $controlled)
echo $controlled $down echo $controlled $down
if test -n "$down"; then if test -n "$down"; then
blocks="$blocks $controlled " blocks="$blocks $controlled "
@ -17,7 +17,7 @@ for s in $(s6-rc-db -d all-dependencies $service); do
;; ;;
*) *)
echo "starting $s because $service" echo "starting $s because $service"
s6-rc -u change $s s6-rc -b -u change $s
;; ;;
esac esac
done done