summarylogtreecommitdiffstats
path: root/netbox-rq.service
diff options
context:
space:
mode:
Diffstat (limited to 'netbox-rq.service')
-rw-r--r--netbox-rq.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/netbox-rq.service b/netbox-rq.service
new file mode 100644
index 00000000000..77d70910c70
--- /dev/null
+++ b/netbox-rq.service
@@ -0,0 +1,21 @@
+[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
+
+ExecStart=/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py rqworker
+
+Restart=on-failure
+RestartSec=30
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target