Robie Basak:
> Based on https://irclogs.ubuntu.com/2018/04/13/%23ubuntu-
> devel.html#t11:56, this sounds valid for either init-system-helpers or
> debhelper.
>
> 13:47 rbasak, the description sounds valid. i believe i have hit
> something similar before, thus yeah a fix to debhelper for this cla
Based on https://irclogs.ubuntu.com/2018/04/13/%23ubuntu-
devel.html#t11:56, this sounds valid for either init-system-helpers or
debhelper.
13:47 rbasak, the description sounds valid. i believe i have hit
something similar before, thus yeah a fix to debhelper for this class of
issues would be mos
On second thought, perhaps invoke-rc.d should treat a systemd disabled
service the same way as one done through the policy-rc.d mechanism.
Whichever way, the correct behaviour should be decided package-wide by
the invoke-rc.d wrapper, so I'm reassigning to init-system-helpers.
** Changed in: freer
Thank you for reporting back.
I believe that in Debian and Ubuntu, policy-rc.d is the right way to
adjust the system to get the behaviour you want, so I'm not sure there
is any further action needed here from Ubuntu developers.
If you believe this is wrong, please do explain and reopen.
** Tags
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
** Changed in: freeradius (Ubuntu)
Importance: Undecided => Low
** Tags removed: bite-size
** Tags added: bitesize
--
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
As a workaround, you can create a /usr/sbin/policy-rc.d file with these
contents:
#!/bin/sh
exit 101
# apt install --reinstall freeradius-ldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove
systemctl:
try-reload-or-restart PATTERN...
Reload one or more units if they support it. If not, restart them
instead. This does nothing if the units are not running.
** Tags added: server-next
** Tags added: bite-size
--
You received this bug notification because you are a