2025-02-08 02:54:01 -08:00

12 lines
319 B
Bash

#!/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