24 lines
462 B
SYSTEMD
24 lines
462 B
SYSTEMD
|
[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
|