forked from ungleich-public/cdist-contrib
__netbox_uwsgi: fix uwsgi netbox service file
Revert working directory changes as the configuration file still needs to be accessable. An absolute path would work, too, but it is not the preferred way. To still work with the python wsgi application, `--chdir` is used.
This commit is contained in:
parent
ffba3ae776
commit
090a8f015e
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ Type=simple
|
|||
|
||||
User=netbox
|
||||
Group=netbox
|
||||
WorkingDirectory=/opt/netbox/netbox/
|
||||
WorkingDirectory=/opt/netbox
|
||||
|
||||
ExecStart=/opt/netbox/venv/bin/uwsgi --master --module netbox.wsgi uwsgi.ini
|
||||
ExecStart=/opt/netbox/venv/bin/uwsgi --master --chdir /opt/netbox/netbox --module netbox.wsgi uwsgi.ini
|
||||
# signals: https://uwsgi-docs.readthedocs.io/en/latest/Management.html#signals-for-controlling-uwsgi
|
||||
ExecReload=kill -HUP $MAINPID
|
||||
ExecStop=kill -INT $MAINPID
|
||||
|
|
Loading…
Reference in a new issue