Matthias Stecher
13e97d171b
The Gunicorn type now supports systemd sockets only. With uWSGI, you can choose between it and the native sockets based on the parameters chosen. This is done because it could not be implemented to have multiple protocols with the systemd sockets (so you may choose). The systemd socket unit file is generally available, so both types use the same script to generate the socket unit file.
12 lines
379 B
Bash
Executable file
12 lines
379 B
Bash
Executable file
#!/bin/sh -e
|
|
# explorer/bind-capablility
|
|
|
|
# Checks if the uWSGI binary have the capability to bind to privileaged ports
|
|
# as a non-root user. It's required if no systemd sockets are used (cause of
|
|
# the use of multiple protocols etc.)
|
|
|
|
binary="/opt/netbox/venv/bin/uwsgi"
|
|
# -v verifies if capability is set
|
|
if setcap -q -v CAP_NET_BIND_SERVICE+ep "$binary"; then
|
|
echo set
|
|
fi
|