netbox: service templates should use user/group from vars

This commit is contained in:
Markus 2021-11-08 17:29:25 +01:00
parent 15d3da93b2
commit 015e75fa2b
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@ Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
User=netbox User={{ netbox_user }}
Group=netbox Group={{ netbox_group }}
WorkingDirectory=/opt/netbox-{{ netbox_version }} WorkingDirectory=/opt/netbox-{{ netbox_version }}
ExecStart=/opt/netbox-{{ netbox_version }}/venv/bin/python3 /opt/netbox-{{ netbox_version }}/netbox/manage.py rqworker ExecStart=/opt/netbox-{{ netbox_version }}/venv/bin/python3 /opt/netbox-{{ netbox_version }}/netbox/manage.py rqworker

View File

@ -7,8 +7,8 @@ Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
User=netbox User={{ netbox_user }}
Group=netbox Group={{ netbox_group }}
PIDFile=/var/tmp/netbox.pid PIDFile=/var/tmp/netbox.pid
WorkingDirectory=/opt/netbox-{{ netbox_version }} WorkingDirectory=/opt/netbox-{{ netbox_version }}