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:
Felipe Santos 2023-01-18 20:50:51 -03:00 committed by GitHub
parent fb85c8ca54
commit d36ab05bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1 @@
120000

View File

@ -0,0 +1 @@
30000

View File

@ -0,0 +1 @@
30000