<div dir="ltr"><div>The following patch should address this issue:</div><div><br></div><div><div>--- i/debian/freeradius-mysql.postinst</div><div>+++ w/debian/freeradius-mysql.postinst</div><div>@@ -5,7 +5,11 @@ set -e</div><div> </div><div> case "$1" in</div><div> configure)</div><div>- invoke-rc.d freeradius force-reload</div><div>+ # Only reload when FreeRADIUS is running, see #859087</div><div>+ if invoke-rc.d freeradius status 1>/dev/null 2>&1</div><div>+ then</div><div>+ invoke-rc.d freeradius force-reload</div><div>+ fi</div><div> ;;</div><div> esac</div></div><div><br></div><div>I’ll add it for the next upload, but that will take a while since Debian is currently in a freeze.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 9:52 AM, Mihail Vasilev <span dir="ltr"><<a href="mailto:mickvav@gmail.com" target="_blank">mickvav@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: freeradius-mysql<br>
Version: 2.2.5+dfsg-0.2<br>
Severity: normal<br>
<br>
Dear Maintainer,<br>
<br>
I am running a master-slave installation of 2 debian servers, on which the<br>
filesystem with database is mounted only on master node (this is ensured by<br>
heartbeat). Thus, I have no running mysql on slave host.<br>
As a result, when I try to update freeradius-mysql package, it tries to<br>
make freeradius reload it's config without thinking that it's not running and<br>
will cause error, as we are operating on the slave host (and directories for log files, for example, are not accessible right now).<br>
<br>
The result was in aptitude marking package as broken and tries to rerun freeradius-mysql.postinst script on every other package install/update operation.<br>
<br>
As it's quite annoying, I've just commented out reload line in postinst script<br>
and things became right for me.<br>
<br>
But I think it would be wiser for the upstream to add some check in .postinst<br>
scripts, which call force-reload action on service only if it's already running.<br>
If freeradius is not running right now - it may be done on purpose.<br>
<br>
I've checked .postinst script in 3.0.12 release of the package - it became much shorter, but there is stil no check in this place.<br>
<br>
<br>
-- System Information:<br>
Debian Release: 8.7<br>
APT prefers stable-updates<br>
APT policy: (500, 'stable-updates'), (500, 'stable')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)<br>
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages freeradius-mysql depends on:<br>
ii freeradius 2.2.5+dfsg-0.2<br>
ii libc6 2.19-18+deb8u7<br>
ii libmysqlclient18 5.5.54-0+deb8u1<br>
ii zlib1g 1:1.2.8.dfsg-2+b1<br>
<br>
freeradius-mysql recommends no packages.<br>
<br>
freeradius-mysql suggests no packages.<br>
<br>
-- debconf-show failed<br>
<br>
______________________________<wbr>_________________<br>
Pkg-freeradius-maintainers mailing list<br>
<a href="mailto:Pkg-freeradius-maintainers@lists.alioth.debian.org">Pkg-freeradius-maintainers@<wbr>lists.alioth.debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-freeradius-maintainers" rel="noreferrer" target="_blank">https://lists.alioth.debian.<wbr>org/mailman/listinfo/pkg-<wbr>freeradius-maintainers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div>