Allow s6 env support

This commit is contained in:
Alexandre
2023-02-12 11:55:38 +01:00
parent 0d697bcd4a
commit 86ba596ef5
12 changed files with 21 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ if [ -n "${RC_SVCNAME}" ]; then
# Re-enter the init script to start any dependant services
if /etc/init.d/"${RC_SVCNAME}" --quiet status ; then
export IN_BACKGROUND=true
if [ -d /var/run/s6/container_environment ]; then printf "true" > /var/run/s6/container_environment/IN_BACKGROUND; fi
/etc/init.d/"${RC_SVCNAME}" --quiet stop
fi
fi

View File

@@ -78,6 +78,7 @@ if [ -n "${RC_SVCNAME}" ]; then
# Re-enter the init script to start any dependant services
if ! /etc/init.d/"${RC_SVCNAME}" --quiet status ; then
export IN_BACKGROUND=true
if [ -d /var/run/s6/container_environment ]; then printf "true" > /var/run/s6/container_environment/IN_BACKGROUND; fi
/etc/init.d/${RC_SVCNAME} --quiet start
fi
fi