Package: sympa Version: 6.2.40~dfsg-1 Severity: normal Tags: patch Dear Maintainer,
when using sysvinit, restarting sympa leaves the system with the sympa daemons not running. root@host:~# service sympa restart [....] Stoping Sympa mailing list manager: archivedstart-stop-daemon: matching only on non-root pidfile /run/sympa/archived.pid is insecure bouncedstart-stop-daemon: matching only on non-root pidfile /run/sympa/bounced.pid is insecure bulkstart-stop-daemon: matching only on non-root pidfile /run/sympa/bulk.pid is insecure task_managerstart-stop-daemon: matching only on non-root pidfile /run/sympa/task_manager.pid is insecure sympa_msgstart-stop-daemon: matching only on non-root pidfile /run/sympa/sympa_msg.pid is insecure Bug #921557 is relevant here. Attached is a patch to fix this. Best regards, Roel -- System Information: Debian Release: 10.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-10-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled -- debconf information excluded
diff -pru a/sympa.init b/sympa.init --- a/sympa.init 2020-09-26 08:05:48.164515651 +0200 +++ b/sympa.init 2020-09-26 08:11:00.340165016 +0200 @@ -112,6 +112,7 @@ stop_sympa() { for daemon in $(reverse_order "$DAEMONS") ; do log_progress_msg "$daemon" start-stop-daemon --stop --quiet --retry 5 \ + --user "${USER}" \ --pidfile "${RUNDIR}/${daemon}.pid" || ERRORS="$ERRORS $daemon" # It may happened that some processes are not tracked with pidfiles. # For example, with the parameter 'distribution_mode fork' used by