aboutsummaryrefslogtreecommitdiffstats
path: root/service/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'service/entrypoint.sh')
-rwxr-xr-xservice/entrypoint.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/service/entrypoint.sh b/service/entrypoint.sh
index ab00f61..d68257e 100755
--- a/service/entrypoint.sh
+++ b/service/entrypoint.sh
@@ -7,10 +7,9 @@ expiry=$((13*60))
while [ 1 ]; do
reftime="$(($(date +%s)-$expiry))"
echo "[FILE CLEANUP] @ $(date +%T)"
- cleaner "$RESULTDIR" "$reftime"
+ cleaner "$RESULTDIR" "$reftime" &> /tmp/cleaner-log
sleep 70
done &
-CMD="socat -T180 -s TCP-LISTEN:9000,nodelay,reuseaddr,fork \
-EXEC:/service/build/stldoctor,raw,pty,echo=0,stderr"
+CMD="ncat -k -l -p 9090 -m 200 --no-shutdown -w10s -i180s -e /service/build/stldoctor"
su -s /bin/sh -c "$CMD" service