On March 6, 2015 17:32:24 Michael Biebl wrote:
> 2015-03-06 17:22 GMT+01:00 Tyson Whitehead <[email protected]>:
> > #### MODULES ####
> > # The imjournal module bellow is now used as a message source instead of 
> > imuxsock.
> > $ModLoad imuxsock # provides support for local system logging (e.g. via 
> > logger command)
> 
> > $OmitLocalLogging on
> > $IMJournalStateFile imjournal.state
> >
> > as this make no sense unless you know that rsyslog understands systemd 
> > socket passing.
> 
> 
> Afaik, rsyslog in Fedora does *not* actually pass the syslog socket to rsyslog
> That's why "Alias=syslog.socket" is commented out in rsyslog.service
> and therefor there is no
> /etc/systemd/system/syslog.service symlink pointing at rsyslog.service.
> 
> rsyslog will start and simply pull the syslog messages from the
> journal via imjournal.
> 
> Why the rsyslog.conf in Fedora loads imuxsock and has
> $OmitLocalLogging on, I dunno.
> 
> Not sure if the Fedora maintainers follow this mailing list and can
> chime in here.

I presumed that '#' was a comment and ';' was ignored as installing the rsyslog 
package symlinked 

 /etc/systemd/system/syslog.service -> /usr/lib/systemd/system/rsyslog.service

when I installed it.  Of course I don't seem to be able to duplicate this 
behaviour by removing and reinstalling it.  Now I only get a link under 
multi-user.target.wants.  Argh.  Maybe an installation order issue due to 
previous versions?

Anyway, your explanation would make sense as to my concerns.  Given this, I 
presume the imuxsock module might as well not be loaded at all as 
$OmitLocalLogging on means it won't be listening on any sockets?

In my case of wanting to make sure any last kernel messages make it off the 
machine when it dies, I'm guessing then that I want to imjournal module and 
enable systemd socket passing which presumably imuxsock picks up on?

Thanks!  -Tyson
_______________________________________________
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