22 lines
465 B
Plaintext
22 lines
465 B
Plaintext
|
[Unit]
|
||
|
Description=NetBox Request Queue Worker
|
||
|
Documentation=https://netbox.readthedocs.io/en/stable/
|
||
|
After=network-online.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
|
||
|
User=netbox
|
||
|
Group=netbox
|
||
|
WorkingDirectory=/opt/netbox-{{ netbox_version }}
|
||
|
|
||
|
ExecStart=/opt/netbox-{{ netbox_version }}/venv/bin/python3 /opt/netbox-{{ netbox_version }}/netbox/manage.py rqworker
|
||
|
|
||
|
Restart=on-failure
|
||
|
RestartSec=30
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|