Ok, so it looks like the following policy-rc.d will do the job for that particular case:
#!/bin/sh skip_disabled() { local service="${1}" if [ -d /run/systemd ] && ! systemctl is-enabled "${service}" 2>&1 /dev/null then exit 101 fi } case "${1}-${2}" in freeradius-reload) skip_disabled "${1}" ;; esac Regards. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1712817 Title: postinst fails if the service is disabled via systemd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/1712817/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs