Skip to content
Snippets Groups Projects
Commit 87ea65eb authored by godog's avatar godog
Browse files

debian: ship systemd service file

parent cb308bf6
No related branches found
No related tags found
No related merge requests found
[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment