<div dir="ltr"><div>Ah, why didn’t you open with that suggestion? :)</div><div><br></div><div dir="ltr"><a href="https://manpages.debian.org/stretch/systemd/systemd.service.5.en.html#OPTIONS">https://manpages.debian.org/stretch/systemd/systemd.service.5.en.html#OPTIONS</a> outlines that switching to Type=simple (which is the consequence of your -f suggestion) means we won’t have start-up failure propagation anymore, and reverse-dependencies of freeradius will not be able to reliably sequence themselves.<br></div><div dir="ltr"><br></div><div>Now, I’m not sure whether these downsides are actually relevant in practice, as I don’t know much about the larger freeradius ecosystem. Maybe there are no communication channels, and no reverse dependencies of note? I’m not sure.</div><div><br></div><div>If you could confirm with upstream that they are blessing use of -f and Type=simple as the default in Debian, I can make the change.</div><div><br></div><div>Thanks,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 24, 2019 at 4:49 PM Mariusz Gronczewski <<a href="mailto:xani666@gmail.com">xani666@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, there is, adding -f option by default means it will always run<br>
in foreground, regardless of whether -X is used or not<br>
<br>
On Thu, 24 Jan 2019 at 15:58, Michael Stapelberg <<a href="mailto:stapelberg@debian.org" target="_blank">stapelberg@debian.org</a>> wrote:<br>
><br>
> The -X option is special in that it changes the way freeradius starts up.<br>
><br>
> It’s expected that if your actions break the contract with the init system (in this case by specifying -X), you’re responsible to rectify that.<br>
><br>
> If there was a simple way to make the package work in any/all cases, it’d be up for it, but I’m not aware of one. Hence my question for what your suggestion is — I just don’t see a way out of this situation.<br>
><br>
> My personal recommendation is to not use /etc/default, but rather systemctl edit to do any overrides, but that’s not Debian’s official line.<br>
><br>
> On Thu, Jan 24, 2019 at 3:37 PM Mariusz Gronczewski <<a href="mailto:xani666@gmail.com" target="_blank">xani666@gmail.com</a>> wrote:<br>
>><br>
>> In our case it was enough to add dropin changing execstart to include<br>
>> -f and type to simple:<br>
>><br>
>> ExecStart=/usr/sbin/freeradius -f $FREERADIUS_OPTIONS<br>
>> Type=simple<br>
>><br>
>> What do you mean by "it is expected" ? Currently enabling debug (by<br>
>> setting FREERADIUS_OPTIONS="-X") cause it to enter restart loop,<br>
>> surely that isn't an expected behaviour ?<br>
>><br>
>> On Thu, 24 Jan 2019 at 13:52, Michael Stapelberg <<a href="mailto:stapelberg@debian.org" target="_blank">stapelberg@debian.org</a>> wrote:<br>
>> ><br>
>> > Yes, this is expected. What change are you suggesting?<br>
>> ><br>
>> > On Thu, Jan 24, 2019 at 1:45 PM Mariusz Gronczewski <<a href="mailto:xani666@gmail.com" target="_blank">xani666@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Package: freeradius<br>
>> >> Version: 3.0.12+dfsg-5+deb9u1<br>
>> >> Severity: normal<br>
>> >><br>
>> >> Currently the type of systemd service is forking.<br>
>> >><br>
>> >> Adding debug to cmdline causes freeradius to run in foreground (and dump debug<br>
>> >> to stdout), which means systemd timeouts on starting service because it assumes<br>
>> >> it will fork.<br>
>> >><br>
>> >> Changing type to simple, and adding -f (run in foreground) option in unit file<br>
>> >> fixes that<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Mariusz Gronczewski (XANi) <<a href="mailto:xani666@gmail.com" target="_blank">xani666@gmail.com</a>><br>
>> >> GnuPG: 0xEA8ACE64<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Pkg-freeradius-maintainers mailing list<br>
>> >> <a href="mailto:Pkg-freeradius-maintainers@alioth-lists.debian.net" target="_blank">Pkg-freeradius-maintainers@alioth-lists.debian.net</a><br>
>> >> <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-freeradius-maintainers" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-freeradius-maintainers</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Best regards,<br>
>> > Michael<br>
>><br>
>><br>
>><br>
>> --<br>
>> Mariusz Gronczewski (XANi) <<a href="mailto:xani666@gmail.com" target="_blank">xani666@gmail.com</a>><br>
>> GnuPG: 0xEA8ACE64<br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Michael<br>
<br>
<br>
<br>
-- <br>
Mariusz Gronczewski (XANi) <<a href="mailto:xani666@gmail.com" target="_blank">xani666@gmail.com</a>><br>
GnuPG: 0xEA8ACE64<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Best regards,<br>Michael</div>