mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
9 lines
221 B
Plaintext
Executable File
9 lines
221 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
# Take down the S6 supervision tree when the service fails, or restart it
|
|
# otherwise
|
|
|
|
if [[ "${1}" -ne 0 && "${1}" -ne 256 ]]; then
|
|
exec /run/s6/basedir/bin/halt
|
|
fi
|