2020-12-16 19:32:58 +01:00
|
|
|
[Unit]
|
|
|
|
Description=NetBox Request Queue Worker
|
|
|
|
Documentation=https://netbox.readthedocs.io/en/stable/
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
|
2021-11-08 17:29:25 +01:00
|
|
|
User={{ netbox_user }}
|
|
|
|
Group={{ netbox_group }}
|
2021-06-22 19:05:22 +02:00
|
|
|
WorkingDirectory=/opt/netbox-{{ netbox_version }}
|
2020-12-16 19:32:58 +01:00
|
|
|
|
2021-06-22 19:05:22 +02:00
|
|
|
ExecStart=/opt/netbox-{{ netbox_version }}/venv/bin/python3 /opt/netbox-{{ netbox_version }}/netbox/manage.py rqworker
|
2020-12-16 19:32:58 +01:00
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=30
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|