diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-05-29 14:24:31 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-05-29 14:24:31 +0200 |
| commit | 13b65f01132c41be9ab8d9f92c2c5ca605c366d8 (patch) | |
| tree | 74bd5b4dee779e4600d416adf4abcd4f621addab /service/entrypoint.sh | |
| parent | 62d99253144a14648c4da1c2a60c01e7b06ef02c (diff) | |
| download | enowars5-service-stldoctor-13b65f01132c41be9ab8d9f92c2c5ca605c366d8.tar.gz enowars5-service-stldoctor-13b65f01132c41be9ab8d9f92c2c5ca605c366d8.zip | |
changed repo structure and commited releease files such that default docker-compose worklow commands work in testvm
Diffstat (limited to 'service/entrypoint.sh')
| -rwxr-xr-x | service/entrypoint.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/service/entrypoint.sh b/service/entrypoint.sh new file mode 100755 index 0000000..b7b6509 --- /dev/null +++ b/service/entrypoint.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +mkdir -p "$RESULTDIR" +chown -R service:service "$RESULTDIR" + +while [ 1 ]; do + /cleaner.sh + sleep 200 +done & + +servicecmd='socat -T30 -s TCP-LISTEN:9000,reuseaddr,fork EXEC:"/service/build/stldoctor",raw,pty,echo=0,stderr' + +su -s /bin/sh -c "$servicecmd" service |
