Commit 776fd411 authored by ale's avatar ale

more fixes

parent 931e9e0a
...@@ -5,11 +5,10 @@ After=network.target ...@@ -5,11 +5,10 @@ After=network.target
[Service] [Service]
PIDFile=/var/run/sso/sso_server.pid PIDFile=/var/run/sso/sso_server.pid
User=root User=root
Group=ai-sso
WorkingDirectory=/var/run/sso WorkingDirectory=/var/run/sso
Environment=SSO_PORT=5002 Environment=SSO_PORT=5002
ExecStart=/usr/bin/gunicorn \ ExecStart=/usr/bin/gunicorn \
--log-config=/etc/sso/logging.conf \ --log-config /etc/sso/logging.conf \
--bind 0.0.0.0:${SSO_PORT} \ --bind 0.0.0.0:${SSO_PORT} \
--worker-class gevent \ --worker-class gevent \
--pid /var/run/sso/sso_server.pid \ --pid /var/run/sso/sso_server.pid \
...@@ -18,7 +17,7 @@ ExecStart=/usr/bin/gunicorn \ ...@@ -18,7 +17,7 @@ ExecStart=/usr/bin/gunicorn \
ExecReload=/bin/kill -s HUP $MAINPID ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true PrivateTmp=true
Restart=on-failure Restart=always
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment