Package: pptpd
Version: 1.4.0-8

pptpd.postint uses the following to identify whether a system
is using systemd as init:

        if [ -x "$(which systemctl || true)" ] ; then

this doesn't work. the systemd package is an almost mandatory install
on debian due to dependencies these days, almost impossible to avoid
it even if you don't want it (i could purge it but then i'd lose about
half-a-dozen packages I want, plus another twenty or so I don't care
much about)- even a sysvinit box has systemctl installed, resulting in:

# dpkg --configure --pending
Setting up pptpd (1.4.0-8) ...
Failed to restart systemd-modules-load.service: No such method 'RestartUnit'
See system logs and 'systemctl status systemd-modules-load.service' for details.
dpkg: error processing package pptpd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 pptpd


You need to check whether the systemd-sysv package is installed.

The easiest way to do that is to check if the directory 
/usr/share/doc/systemd-sysv/ exists, e.g.:

        if [ -d /usr/share/doc/systemd-sysv/ ] ; then


craig

Reply via email to