oxdata/etc/systemd/system/oxdata.service

24 lines
462 B
SYSTEMD
Raw Normal View History

2016-09-07 15:20:13 +00:00
[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