diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-23 12:40:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-23 12:53:09 +0300 |
commit | e826bfcbc6ca6c16da0941125f7675d49f5a413e (patch) | |
tree | dee5d472908c27a2ab272511a75345273ecf6663 /start_ick | |
parent | 85dd5c6551845ebc34c490f7fbc27a02d307f206 (diff) | |
download | ick2-e826bfcbc6ca6c16da0941125f7675d49f5a413e.tar.gz |
Add: don't have a PUT for workers, log created worker
Diffstat (limited to 'start_ick')
-rwxr-xr-x[-rw-r--r--] | start_ick | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/start_ick b/start_ick index 96f745c..8c9d50f 100644..100755 --- a/start_ick +++ b/start_ick @@ -16,9 +16,17 @@ set -eux -export ICK_CONTROLLER_CONFIG=/etc/ick/controller.yaml +if [ "$#" = 1 ] +then + export ICK_CONTROLLER_CONFIG="$1" + export GUNICORN_LOG=gunicorn3.log +else + export ICK_CONTROLLER_CONFIG=/etc/ick/controller.yaml + export GUNICORN_LOG=/var/log/ick/gunicorn3.log +fi + gunicorn3 \ --bind 127.0.0.1:12765 \ - --log-file /var/log/ick/gunicorn3.log \ + --log-file "$GUNICORN_LOG" \ --log-level debug \ ick_controller:app |