2021-07-14 17:38:28 +02:00
|
|
|
[Unit]
|
|
|
|
Description=NetBox WSGI Service
|
|
|
|
Documentation=https://netbox.readthedocs.io/en/stable/
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
|
2021-11-08 17:29:00 +01:00
|
|
|
User={{ netbox_user }}
|
|
|
|
Group={{ netbox_group }}
|
2021-07-14 17:38:28 +02:00
|
|
|
PIDFile=/var/tmp/netbox.pid
|
|
|
|
WorkingDirectory=/opt/netbox-{{ netbox_version }}
|
|
|
|
|
|
|
|
ExecStart=/opt/netbox-{{ netbox_version }}/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox-{{ netbox_version }}/netbox --config /opt/netbox-{{ netbox_version }}/gunicorn.py netbox.wsgi
|
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=30
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|