Commit ad06db74 authored by godog's avatar godog

debian: ship systemd service file

parent fcb7aaee
[Unit]
Description=AI SSO Server
After=network.target
[Service]
PIDFile=/var/run/sso/sso_server.pid
User=ai-sso
Group=ai-sso
WorkingDirectory=/var/run/sso
Environment=SSO_PORT=5002
ExecStart=/usr/bin/gunicorn \
--log-config=/etc/sso/logging.conf \
--bind 0.0.0.0:${SSO_PORT} \
--worker-class gevent \
--pid /var/run/sso/sso_server.pid \
--name ai-sso-server \
sso_server.wsgi:app
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
Restart=on-failure
[Install]
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