mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
Create netbox-rqworker.service
Supervisord seems to act up on Ubuntu 18.04.1, at least in a container. Convert that task to a proper systemd service.
This commit is contained in:
parent
9440ac7640
commit
aa96e3b3cf
17
scripts/netbox-rqworker.service
Normal file
17
scripts/netbox-rqworker.service
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Alternative to using supervisord for running the NetBox Redis Worker
|
||||||
|
# 1. Create in /etc/systemd/system/netbox-rqworker.service
|
||||||
|
# 2. systemctl enable netbox-rqworker && systemctl restart netbox-rqworker
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=NetBox rqworker
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=netbox
|
||||||
|
Group=netbox
|
||||||
|
Environment=LC_ALL=C.UTF-8 LANG=C.UTF-8
|
||||||
|
ExecStart=/usr/bin/python3 /opt/netbox/netbox/manage.py rqworker
|
||||||
|
WorkingDirectory=/opt/netbox/netbox
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=redis-server.service
|
Loading…
Reference in New Issue
Block a user