Re: how to correctly log without journald (and its blobs)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was able to disable journald similar to this:


systemctl stop systemd-journald-dev-log.socket systemd-journald.socket systemd-journald.service
systemctl mask systemd-journald-dev-log.socket systemd-journald.socket systemd-journald.service

(I tried to "disable" those services first, but somehow journald got started anyway on the next reboot).


Configure rsyslog with:

$AddUnixListenSocket                /var/run/systemd/journal/syslog
$SystemLogSocketName            /var/run/systemd/journal/syslog

Or with the new configuration format[0]:

module(load="imuxsock" SysSock.Name="/run/systemd/journal/syslog" Socket="/var/run/systemd/journal/syslog")

I also had to adjust the /dev/log symlink to point to /var/run/systemd/journal/syslog, so that programs like logger(1) will still work. Added the following to /etc/rc.local (or wherevery custom startup routines were configured):

ln -svf /var/run/systemd/journal/syslog /dev/log | logger -t "$0"

With all that journald is no longer running and rsyslog still works! :-)


[0] http://www.rsyslog.com/doc/v8-stable/configuration/modules/imuxsock.html
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux