__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:
matze 2020-09-05 22:08:37 +02:00
parent ffba3ae776
commit 090a8f015e

View file

@ -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