On Fri, Apr 1, 2016 at 10:50 PM, David Lang <[email protected]> wrote:
> On Fri, 1 Apr 2016, fmoreau wrote:
>
>> Hi,
>>
>> This question was  already asked in the past, see:
>> http://permalink.gmane.org/gmane.comp.sysutils.rsyslog/9864
>>
>> But IMHO the answers given weren't satisfactory. So I'm asking again.
>>
>> If there's no reason and rsyslog only needs the local fs to be settled
>> then
>> it should be started earlier to avoid missing some early messages sent by
>> systemd.
>
>
> The trouble is that it depends a lot on exactly what you have rsyslog
> configured to do. Since rsyslog can send logs over the network, to
> databases, etc, there are potentially a lot of thigns that need to be
> started first.

But shouldn't rsyslog be prepared to handle these cases where network
isn't yet ready and should start sending logs over the network as soon
as the network becomes available for example ?

That's probably already the case otherwise rsyslog won't be able to
handle gracefully any network disconnections or such.

>
> As a result, distros start it later by default.
>

Well yes I can understand it if rsyslog simply fails and exits on any
network failures but I doubt it's the case.

>
> if systemd will loose logs before rsyslog starts, and systemd insists on
> being the thing to start rsyslog. I view this as a systemd bug (and will
> work to configure my machines sanely, in spite of systemd.
>
> but in any case, the rsyslog project has very little influence on when the
> distros configure systemd to start rsyslog :-(


Hm I'm not sure since rsyslog ships rsyslog.service, so distros
probalby use it as base or ship it directly.

But in any cases the rsyslog.service shipped by the rsyslog project
should serve as reference for distos.


> I know this isn't a good answer, but hopefully it helps explain why we don't
> have a good answer.
>

Thanks for your insight, it's still usefull.


-- 
Francis
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to