diff options
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 |