[pkg-uWSGI-devel] Bug#969372: INFO: Bug#969372: uwsgi-emperor: SysV init script does nothing

Rens Houben rhouben at systemec.nl
Tue Dec 22 17:35:52 GMT 2020


Okay, this is quick-and-dirty because I didn't have a great deal of time and I'm not /that/ great with systemd service files to begin with.

-------
[Unit]
Description=uWSGI Emperor
After=syslog.target

[Service]
ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi-emperor/emperor.ini
RuntimeDirectory=uwsgi
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all

[Install]
WantedBy=multi-user.target
--------
There's serious room for improvement there -- the usual way for 
running the Emperor is in Tyrant mode and setting it to retain 
setuid/setguid capabilities before switching down to a 
non-privileged user; I think it would be possible to assign 
it those capabilities in the service file and start it unprivileged 
otherwise, but I'm not good enough to bash that out safely.

Hope this helps, and thanks for the excellent job you guys do,

--Rens.


More information about the pkg-uWSGI-devel mailing list