Package: spf-milter-python Version: 0.9-2 Severity: important Dear Maintainer,
In the good-old-days, spf-milter-python was started by /etc/init.d/spf-milter-python which ensured that the /var/run/spf-milter-python directory existed. Post-systemd, even calls to /etc/init.d/spf-milter-python directly are intercepted by /lib/lsb/init-functions and the systemd unit file doesn't create the directory automatically. Also, the directory is no longer persistent across reboots. Currently the default /lib/systemd/system/spf-milter-python contains: [Unit] Description=SPF Milter Python Documentation=man:spfmilter(1) After=network.target [Service] Type=simple PIDFile=/var/run/spf-milter-python/spfmilter.pid ExecStart=/usr/bin/spfmilter [Install] WantedBy=multi-user.target And thus: Aug 22 10:28:31 flamen systemd[1]: Started SPF Milter Python. -- Subject: A start job for unit spf-milter-python.service has finished successfully -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit spf-milter-python.service has finished successfully. -- -- The job identifier is 312. Aug 22 10:28:31 flamen spfmilter[2054]: /usr/bin/spfmilter: 3: cannot create /var/run/spf-milter-python/spfmilter.pid: Directory non Aug 22 10:28:32 flamen systemd[1]: spf-milter-python.service: Main process exited, code=exited, status=2/INVALIDARGUMENT -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- An ExecStart= process belonging to unit spf-milter-python.service has exited. -- -- The process' exit code is 'exited' and its exit status is 2. Aug 22 10:28:32 flamen systemd[1]: spf-milter-python.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The unit spf-milter-python.service has entered the 'failed' state with result 'exit-code'. This can and should be corrected by using the RuntimeDirectory directive as follows: [Unit] Description=SPF Milter Python Documentation=man:spfmilter(1) After=network.target [Service] Type=simple User=spf-milter-python Group=spf-milter-python RuntimeDirectory=spf-milter-python PIDFile=/run/spf-milter-python/spfmilter.pid ExecStart=/usr/bin/spfmilter [Install] WantedBy=multi-user.target -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_WARN Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages spf-milter-python depends on: ii adduser 3.118 ii lsb-base 10.2019051400 ii python 2.7.16-1 ii python-milter 1.0.3-3 ii python-spf 2.0.12t-3 spf-milter-python recommends no packages. Versions of packages spf-milter-python suggests: ii sendmail 8.15.2-13 -- no debconf information