[pkg-uWSGI-devel] Bug#772544: uwsgi start/sop/restrt one file

Marius Gedminas marius at gedmin.as
Wed Nov 11 10:51:58 GMT 2020


> uwsgi init script actually does support what you need (if I understand 
> you correctly), through optional subcommand:
>
>   service uwsgi restart some-specific_application
>
> Do you perhaps have suggestions how/where we could document that?

This _is_ mentioned in /usr/share/doc/uwsgi/README.Debian.gz (where I
learned about it), but unfortunately it does not work on systemd
systems.

/etc/init.d/uwsgi sources /lib/lsb/init-functions, which sources
/lib/lsb/init-functions.d/40-systemd, which detects a running systemd,
runs systemctl $command uwsgi, and exits.  Any additional command-line
arguments are lost.

It's possible to avoid this systemctl redirection by doing

    SYSTEMCTL_SKIP_REDIRECT=1 service uwsgi restart foo

This is _not_ documented in /usr/share/doc/uwsgi/README.Debian.gz, but
maybe should be?

Regards,
Marius Gedminas
-- 
The typewriter was invented by Hungarian immigrant Qwert Yuiop, who left his
"signature" on the keyboard.
        -- "Kim"



More information about the pkg-uWSGI-devel mailing list