We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e512904 commit ed6c70aCopy full SHA for ed6c70a
rootfs/etc/services.d/home-assistant/finish
@@ -13,8 +13,12 @@ ifelse { s6-test ${1} -eq ${SIGNAL_EXIT_CODE} } {
13
# Process terminated by a signal
14
define signal ${2}
15
foreground { s6-echo "[finish] process received signal ${signal}" }
16
+ backtick -n new_exit_code { s6-expr 128 + ${signal} }
17
+ importas -ui new_exit_code new_exit_code
18
+ foreground { redirfd -w 1 /var/run/s6/env-stage3/S6_STAGE2_EXITED s6-echo -n -- ${new_exit_code} }
19
if { s6-test ${signal} -ne ${SIGTERM} }
20
s6-svscanctl -t /var/run/s6/services
21
}
22
23
+foreground { redirfd -w 1 /var/run/s6/env-stage3/S6_STAGE2_EXITED s6-echo -n -- ${1} }
24
0 commit comments