add s6-rc-up-tree: start reverse deps of controlled service

When s6-rc stops a service, it also stops everything that
depends on it. but when it starts a service it starts only
that service, so we have to go through the other services
depending on it and figure out if they should be started too.
This commit is contained in:
Daniel Barlow
2024-06-15 14:59:34 +01:00
parent 1d337588f9
commit 49d1703428
8 changed files with 60 additions and 4 deletions

View File

@@ -16,6 +16,8 @@ done
if test -n "$controller" ; then
d=$(dirname $(cd ${controller} && ls -d */type))
echo "$d)" > $out/${name}/controller
# ^ why is there a closing paren here?
touch $out/${name}/dependencies.d/controlled
fi
for i in timeout-up timeout-down run notification-fd up down finish consumer-for producer-for pipeline-name restart-on-upgrade; do