netbox/manage.py rqworker command unknown

Configuration file template `/etc/supervisor/conf.d/netbox.conf` contains `netbox-rqworker` section. 
In case, you do not enable WEBHOOKS_ENABLE and use REDIS you get this from `supervisor`

 ```no-highlight
Nov 16 07:21:39 localhost supervisord[14968]: 2018-11-16 07:21:39,774 INFO exited: netbox-rqworker (exit status 1; not expected)
Nov 16 07:21:40 localhost supervisord[14968]: 2018-11-16 07:21:40,778 INFO spawned: 'netbox-rqworker' with pid 31816
Nov 16 07:21:41 localhost supervisord[14968]: 2018-11-16 07:21:41,781 INFO success: netbox-rqworker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Nov 16 07:21:43 localhost supervisord[14968]: 2018-11-16 07:21:43,008 INFO exited: netbox-rqworker (exit status 1; not expected)
Nov 16 07:21:44 localhost supervisord[14968]: 2018-11-16 07:21:44,012 INFO spawned: 'netbox-rqworker' with pid 31822
Nov 16 07:21:45 localhost supervisord[14968]: 2018-11-16 07:21:45,014 INFO success: netbox-rqworker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
```
This commit is contained in:
Petr Klíma 2018-11-16 07:38:33 +01:00 committed by GitHub
parent 3366a6ae3d
commit 43366f8039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,10 +134,11 @@ command = gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi
directory = /opt/netbox/netbox/ directory = /opt/netbox/netbox/
user = www-data user = www-data
[program:netbox-rqworker] # ### Uncomment when you enabled WEBHOOKS_ENABLE and use REDIS
command = python3 /opt/netbox/netbox/manage.py rqworker # [program:netbox-rqworker]
directory = /opt/netbox/netbox/ # command = python3 /opt/netbox/netbox/manage.py rqworker
user = www-data # directory = /opt/netbox/netbox/
# user = www-data
``` ```
Then, restart the supervisor service to detect and run the gunicorn service: Then, restart the supervisor service to detect and run the gunicorn service: