|
@@ -9,7 +9,7 @@ if test -d /run/s6/container_environment ; then
|
|
|
s6-chmod 0755 /run/s6/container_environment
|
|
|
fi
|
|
|
|
|
|
-if v=`printcontenv S6_VERBOSITY` && s6-test "$v" =~ '^[[:digit:]]+$' ; then : ; else
|
|
|
+if v=`printcontenv S6_VERBOSITY` && eltest "$v" =~ '^[[:digit:]]+$' ; then : ; else
|
|
|
v=2
|
|
|
fi
|
|
|
cv=$((v - 1))
|
|
@@ -22,7 +22,7 @@ if hook=`printcontenv S6_STAGE2_HOOK` && test -n "$hook" ; then
|
|
|
$hook
|
|
|
r=$?
|
|
|
set -e
|
|
|
- if s6-test "$r" -gt 0 -a "$v" -gt 0 ; then
|
|
|
+ if eltest "$r" -gt 0 -a "$v" -gt 0 ; then
|
|
|
echo "$prog: warning: hook $hook exited $r" 1>&2
|
|
|
fi
|
|
|
fi
|
|
@@ -36,7 +36,7 @@ fi
|
|
|
s6-rc-compile -v"$cv" /run/s6/db "$etc/s6-overlay/s6-rc.d" /package/admin/s6-overlay-@VERSION@/etc/s6-rc/sources
|
|
|
s6-rc-init -c /run/s6/db /run/service
|
|
|
|
|
|
-if timeout=`printcontenv S6_CMD_WAIT_FOR_SERVICES_MAXTIME` && s6-test "$timeout" =~ '^[[:digit:]]+$' ; then : ; else
|
|
|
+if timeout=`printcontenv S6_CMD_WAIT_FOR_SERVICES_MAXTIME` && eltest "$timeout" =~ '^[[:digit:]]+$' ; then : ; else
|
|
|
timeout=5000
|
|
|
fi
|
|
|
|
|
@@ -45,7 +45,7 @@ s6-rc -v$v -u -t "$timeout" -- change "$top"
|
|
|
r=$?
|
|
|
set -e
|
|
|
|
|
|
-if b=`printcontenv S6_BEHAVIOUR_IF_STAGE2_FAILS` && s6-test "$r" -gt 0 -a "$b" =~ '^[[:digit:]]+$' -a "$b" -gt 0 ; then
|
|
|
+if b=`printcontenv S6_BEHAVIOUR_IF_STAGE2_FAILS` && eltest "$r" -gt 0 -a "$b" =~ '^[[:digit:]]+$' -a "$b" -gt 0 ; then
|
|
|
echo "$prog: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information." 1>&2
|
|
|
if test "$b" -ge 2 ; then
|
|
|
echo "$prog: fatal: stopping the container." 1>&2
|
|
@@ -58,7 +58,7 @@ if test "$#" -gt 0 ; then
|
|
|
cd `s6-cat < /run/s6/workdir`
|
|
|
set +e
|
|
|
arg0=`printcontenv S6_CMD_ARG0`
|
|
|
- if b=`printcontenv S6_CMD_RECEIVE_SIGNALS` && s6-test "$b" =~ '^[[:digit:]]+$' -a "$b" -gt 0 ; then
|
|
|
+ if b=`printcontenv S6_CMD_RECEIVE_SIGNALS` && eltest "$b" =~ '^[[:digit:]]+$' -a "$b" -gt 0 ; then
|
|
|
$arg0 "$@" &
|
|
|
cmdpid="$!"
|
|
|
echo "$cmdpid" > /run/s6/cmdpid
|