ansible/roles/netbox/templates/netbox-rq.service.j2
Markus Hauschild d4a9ccf43d
Some checks failed
continuous-integration/drone/push Build is failing
netbox: bump to 2.10.1 and add systemd service
2020-12-16 19:32:58 +01:00

22 lines
423 B
Django/Jinja

[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-2.10.1
ExecStart=/opt/netbox-2.10.1/venv/bin/python3 /opt/netbox-2.10.1/netbox/manage.py rqworker
Restart=on-failure
RestartSec=30
PrivateTmp=true
[Install]
WantedBy=multi-user.target