Installing uwsgi via apt in Ubuntu 22.04 creates all necessary config files for systemd. /run/systemd/generator.late/uwsgi.service
calls /etc/init.d/uwsgi
to start/stop the service, which in turn reads the configured apps from /etc/uwsgi/apps-enabled/
.
So far, so good, but I fail to see
- why the file in
/etc/init.d/
is created (and called by/run/systemd/generator.late/uwsgi.service
) instead of having a systemd configuration file in/etc/systemd/system/
) - when the existing service files
/lib/systemd/system/[email protected]
and/lib/systemd/system/[email protected]
are read/used, and - why
/lib/systemd/system/[email protected]
refers to configured apps in/etc/uwsgi/apps-available/
instead of/etc/uwsgi/apps-enabled/
.
I was under the impression that /etc/init.d/
dates back to SysVInit, which was superseded by systemd, and the combination of configuration files from both approaches is quite confusing.