diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-07-08 12:37:30 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-07-08 12:37:30 +0200 |
| commit | 19d9a38484f1fcd9a05909186531ce401dcc94bb (patch) | |
| tree | dedbea1db782572bff4a1b9b7a68838c67726c70 /service/entrypoint.sh | |
| parent | 4dbe86d40037375ca873d368da5ca0c080e40afd (diff) | |
| download | enowars5-service-stldoctor-19d9a38484f1fcd9a05909186531ce401dcc94bb.tar.gz enowars5-service-stldoctor-19d9a38484f1fcd9a05909186531ce401dcc94bb.zip | |
replaced socat with ncat and small fixes
Diffstat (limited to 'service/entrypoint.sh')
| -rwxr-xr-x | service/entrypoint.sh | 5 |
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 |
