diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-09-12 20:17:07 +0200 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-09-12 20:17:07 +0200 |
commit | a23e08ce20887efb4e158a02ffee1f775a0db89f (patch) | |
tree | 493a2cef5496aec74e57ad453574fdef6856f92b /app/build/sogo/entrypoint | |
parent | fb4ffbc7faa0d123ce9bf817d240a8c670c494e3 (diff) | |
download | infrastructure-a23e08ce20887efb4e158a02ffee1f775a0db89f.tar.gz infrastructure-a23e08ce20887efb4e158a02ffee1f775a0db89f.zip |
Refactor 2
Diffstat (limited to 'app/build/sogo/entrypoint')
-rwxr-xr-x | app/build/sogo/entrypoint | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/build/sogo/entrypoint b/app/build/sogo/entrypoint new file mode 100755 index 0000000..8b39def --- /dev/null +++ b/app/build/sogo/entrypoint @@ -0,0 +1,13 @@ +#!/bin/bash +mkdir -p /var/log/sogo +mkdir -p /var/run/sogo +mkdir -p /var/spool/sogo +chown sogo /var/log/sogo +chown sogo /var/run/sogo +chown sogo /var/spool/sogo + +nginx -g 'daemon on; master_process on;' +sudo -u sogo memcached -d +sudo -u sogo sogod +sleep 10 +tail -n200 -f /var/log/sogo/sogo.log |