oxdata/etc/systemd/system/oxdata.service

23 lines
462 B
Desktop File

[Unit]
Description=oxdata daemon
[Service]
Type=simple
Restart=always
User=oxdata
Group=oxdata
PIDFile=/run/oxdata/oxdata.pid
WorkingDirectory=/srv/oxdata/oxdata
StandardOutput=syslog
StandardError=syslog
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/srv/oxdata/bin/gunicorn \
wsgi:application \
-p /run/oxdata/oxdata.pid \
--bind 0.0.0.0:8087 \
--workers 5 \
--max-requests 1000 \
--log-level info
[Install]
WantedBy=multi-user.target