update system integration and readme
This commit is contained in:
parent
e0568e4b64
commit
91dee6d2b4
5 changed files with 44 additions and 47 deletions
23
etc/systemd/system/oxdata.service
Normal file
23
etc/systemd/system/oxdata.service
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[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
|
||||
Loading…
Add table
Add a link
Reference in a new issue