I'm currently working on enabling and disabling ForwardToSyslog
option in systemd-journald at runtime.
When I set it to "no" -> ForwardToSyslog=no
in /etc/systemd/journald.conf
followed by systemctl restart systemd-journald
my rsyslog generated files stop receiving info.
My problem:
Reenabling forwarding to syslog by doing: ForwardToSyslog=yes
in /etc/systemd/journald.conf
followed by systemctl restart systemd-journald
is NOT followed by getting logs inside rsyslog files.
Only newly started systemd services have logs forwarded, but those that were running need to be restarted.
My question:
Is this a bug of a systemd-journald?
Is there a better way to have logs forwarded to syslog than by restarting all of the running services?
EDIT:
I use systemd 230