Files
netbox-community-netbox/contrib/netbox.service
T

27 lines
668 B
Desktop File
Raw Normal View History

2019-09-06 11:46:35 -05:00
[Unit]
2019-12-12 14:07:06 -05:00
Description=NetBox WSGI Service
Documentation=https://docs.netbox.dev/
2019-09-06 11:46:35 -05:00
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=netbox
Group=netbox
2019-12-12 14:07:06 -05:00
PIDFile=/var/tmp/netbox.pid
WorkingDirectory=/opt/netbox
2019-09-06 11:46:35 -05:00
# Remove the following line if using uWSGI instead of Gunicorn
ExecStart=/opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
2019-09-06 11:46:35 -05:00
# Uncomment the following line if using uWSGI instead of Gunicorn
#ExecStart=/opt/netbox/venv/bin/uwsgi --ini /opt/netbox/uwsgi.ini
2019-09-06 11:46:35 -05:00
Restart=on-failure
RestartSec=30
PrivateTmp=true
[Install]
2019-12-12 14:07:06 -05:00
WantedBy=multi-user.target