ansible/roles/netbox/templates/netbox-rq.service.j2
Markus Hauschild 015e75fa2b
Some checks failed
continuous-integration/drone/push Build is failing
netbox: service templates should use user/group from vars
2021-11-08 17:29:25 +01:00

22 lines
488 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_user }}
Group={{ netbox_group }}
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