netbox.service 668 B

1234567891011121314151617181920212223242526
  1. [Unit]
  2. Description=NetBox WSGI Service
  3. Documentation=https://docs.netbox.dev/
  4. After=network-online.target
  5. Wants=network-online.target
  6. [Service]
  7. Type=simple
  8. User=netbox
  9. Group=netbox
  10. PIDFile=/var/tmp/netbox.pid
  11. WorkingDirectory=/opt/netbox
  12. # Remove the following line if using uWSGI instead of Gunicorn
  13. ExecStart=/opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
  14. # Uncomment the following line if using uWSGI instead of Gunicorn
  15. #ExecStart=/opt/netbox/venv/bin/uwsgi --ini /opt/netbox/uwsgi.ini
  16. Restart=on-failure
  17. RestartSec=30
  18. PrivateTmp=true
  19. [Install]
  20. WantedBy=multi-user.target