mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-01 13:09:42 -06:00
Do not wait forever for services to exit (#5149)
* Fix frigate service restarting inside devcontainer * Add timeouts to services exit process So s6 won't wait forever.
This commit is contained in:
parent
fb85c8ca54
commit
d36ab05bf1
@ -2,7 +2,12 @@
|
||||
# shellcheck shell=bash
|
||||
# Start the fake Frigate service
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# Tell S6-Overlay not to restart this service
|
||||
s6-svc -O .
|
||||
|
||||
while true; do
|
||||
echo "The fake Frigate service is running..."
|
||||
echo "[INFO] The fake Frigate service is running..."
|
||||
sleep 5s
|
||||
done
|
||||
|
@ -0,0 +1 @@
|
||||
120000
|
1
docker/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/timeout-kill
Normal file
1
docker/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/timeout-kill
Normal file
@ -0,0 +1 @@
|
||||
30000
|
1
docker/rootfs/etc/s6-overlay/s6-rc.d/nginx/timeout-kill
Normal file
1
docker/rootfs/etc/s6-overlay/s6-rc.d/nginx/timeout-kill
Normal file
@ -0,0 +1 @@
|
||||
30000
|
Loading…
Reference in New Issue
Block a user