Package: proftpd-core Version: 1.3.7b+dfsg-1 Severity: normal Tags: patch X-Debbugs-Cc: plore...@disroot.org
Dear Maintainer, during the last upgrade of proftpd i got [...] Setting up proftpd-core (1.3.7b+dfsg-1) ... usermod: no changes Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 110. sh: 1: systemctl: not found Can't exec "systemctl": No such file or directory at /usr/bin/deb-systemd-invoke line 94. proftpd.service is a disabled or a static unit not running, not starting it. insserv: warning: current start runlevel(s) (empty) of script `proftpd' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `proftpd' overrides LSB defaults (0 1 6). insserv: Script `lvm2' has overlapping Default-Start and Default-Stop runlevels (S) and (S). This should be fixed. Stopping ftp server: proftpd. Starting ftp server: proftpd. [...] Not a tragic issue since it looks that postinst script proceeds anyway with the rest of the configuration, but if you look at snippets from debhelper deb-systemd-invoke is always called only if systemd is PID1. The patch at the bottom should fix the issue. Regards, Lorenzo $ diff -u ./proftpd-core.postinst proftpd-core.postinst-new --- ./proftpd-core.postinst 2021-07-15 23:33:15.000000000 +0200 +++ proftpd-core.postinst-new 2021-07-19 10:02:48.080741451 +0200 @@ -207,8 +207,10 @@ # enable and start proftpd daemon via systemctl if egrep -qi "^[[:space:]]*ServerType.*standalone" /etc/proftpd/proftpd.conf then - deb-systemd-invoke enable proftpd.service - deb-systemd-invoke restart proftpd.service + if [ -d /run/systemd/system ]; then + deb-systemd-invoke enable proftpd.service + deb-systemd-invoke restart proftpd.service + fi fi fi -- System Information: Debian Release: 11.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.7.0-1-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: runit (via /run/runit.stopit) Versions of packages proftpd-core depends on: ii adduser 3.118 ii debianutils 4.11.2 ii init-system-helpers 1.60 ii libacl1 2.2.53-10 ii libc6 2.31-13 ii libcap2 1:2.44-1 ii libcrypt1 1:4.4.18-4 ii libhiredis0.14 0.14.1-1 ii libmemcached11 1.0.18-4.2 ii libmemcachedutil2 1.0.18-4.2 ii libncursesw6 6.2+20201114-2 ii libpam-runtime 1.4.0-9 ii libpam0g 1.4.0-9 ii libpcre3 2:8.39-13 ii libssl1.1 1.1.1k-1 ii libtinfo6 6.2+20201114-2 ii lsb-base 11.1.0 ii netbase 6.3 ii sed 4.7-1 ii ucf 3.0043 ii zlib1g 1:1.2.11.dfsg-2 Versions of packages proftpd-core recommends: ii proftpd-doc 1.3.7b+dfsg-1 Versions of packages proftpd-core suggests: pn openbsd-inetd | inet-superserver <none> ii openssl 1.1.1k-1 ii proftpd-mod-crypto 1.3.7b+dfsg-1 pn proftpd-mod-geoip <none> pn proftpd-mod-ldap <none> pn proftpd-mod-mysql <none> pn proftpd-mod-odbc <none> pn proftpd-mod-pgsql <none> pn proftpd-mod-snmp <none> pn proftpd-mod-sqlite <none> ii proftpd-mod-wrap 1.3.7b+dfsg-1 -- no debconf information