12 lines
319 B
Plaintext
12 lines
319 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
echo "svc-opentracker was killed by 'docker stop'"
|
||
|
echo "@see https://github.com/just-containers/s6-overlay#setting-the-exit-code-of-the-container-to-the-exit-code-of-your-main-service"
|
||
|
|
||
|
if test "$1" -eq 256 ; then
|
||
|
e=$((128 + $2))
|
||
|
else
|
||
|
e="$1"
|
||
|
fi
|
||
|
|
||
|
echo "$e" > /run/s6-linux-init-container-results/exitcode
|