stop service instead of sleep

This commit is contained in:
aptalca
2022-08-30 13:02:02 -04:00
parent 7874132725
commit 9aae0d1f0f
2 changed files with 5 additions and 1 deletions
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
if [ -z "${LOGS_TO_STDOUT}" ]; then
exit 125
fi
@@ -6,5 +6,4 @@ if [ -n "${LOGS_TO_STDOUT}" ]; then
tail -F $TAIL_LOGS
else
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
sleep infinity
fi