Hi,
it seems to me that in postinst, instead of
if $do_systemd
then
systemctl start pmcd.service >/dev/null
systemctl start pmlogger.service >/dev/null
elif which invoke-rc.d >/dev/null 2>&1
then
invoke-rc.d pmcd start
invoke-rc.d pmlogger start
else
/etc/init.d/pmcd start
/etc/init.d/pmlogger start
fi
You could just do
service pmcd start
service pmlogger start
Additionally, I think a case can be made for ignoring failures to start these
services in postinst. If the package fails to configure, that'll break
unattended-upgrades which will then also not install security updates.
AndrĂ¡s
--
A hangover: the wrath of grapes.