[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2018-04-13 Thread Niels Thykier
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

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2018-04-13 Thread 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 class of issues would be mos

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2018-04-13 Thread Robie Basak
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

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2018-04-13 Thread Robie Basak
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

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2017-08-30 Thread EOLE team
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

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2017-08-28 Thread Andreas Hasenack
** 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

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2017-08-25 Thread Andreas Hasenack
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

[Bug 1712817] Re: postinst fails if the service is disabled via systemd

2017-08-25 Thread Andreas Hasenack
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