Am 19.07.2021 um 10:23 teilte Lorenzo Puliti mit:

Hi Lorenzo, hi Francesco,

[...]
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.

Thanks for the patch!

On the other hand the dh_installsystemd command adds the following code block below to the postinst script.

I'm missing here the "deb-systemd-invoke restart" command here, but I'm not sure if it is really needed. I tend to remove completely our hand written code and leave the job to debhelper.

Hilmar

<snip>

# Automatically added by dh_installsystemd/13.5.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
        if deb-systemd-helper debian-installed 'proftpd.service'; then
# This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'proftpd.service' >/dev/null || true

if deb-systemd-helper --quiet was-enabled 'proftpd.service'; then
                        # Create new symlinks, if any.
deb-systemd-helper enable 'proftpd.service' >/dev/null || true
                fi
        fi

# Update the statefile to add new symlinks (if any), which need to be cleaned
        # up on purge. Also remove old symlinks.
deb-systemd-helper update-state 'proftpd.service' >/dev/null || true
fi
# End automatically added section

--
sigfault


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to