#994744 mailman3-web: SysV init script doesn't handle correctly PID files

#994744#5
Date:
2021-09-20 11:31:04 UTC
From:
To:
Dear Maintainer,

While testing mailman3-web with SysV init, I've noticed the following two
problems:

    - PIDFILE is created by DAEMON=/usr/bin/uwsgi_python3, which is
      /usr/bin/uwsgi-core, which reads options from /etc/mailman3/uwsgi.ini
      (part of mailman3-web). However, the INI file does not set umask,
      resulting in a PIDFILE with permissions of 666, and start-stop-daemon
      refuses to work with world-writeable PID files, so one cannot stop the
      stack via the init script.

      This can be mitigated by editing /etc/mailman3/uwsgi.ini and adding

      [uwsgi]
      umask = 0022

    - UWSGI seems not to remove its PIDFILE upon stop, so maybe the init
      script should include --remove-pidfile start-stop-daemon option where
      appropriate

regards,
--velin