It is great that systemd can keep rsyslog daemon alive even when it dies.
But I am crafting a new rsyslog configuration file and need to start this rsyslog daemon in debug mode. Before I debug rsyslogd
, I need to stop the production rsyslog daemon, so I executed:
systemctl stop rsyslogd.service
But that command doesn't stop rsyslog daemon. Killing it via Unix signal doesn't keep systemd from respawning rsyslogd:
kill -KILL <rsyslogd-pid>
Even executing systemctl mask rsyslogd.service
doesn't stop the respawning.
How do I make systemd STOP respawning 'rsyslog' daemon so I can troubleshoot it using debug?
syslog.socket
is not a service, is a socket file, Basically it allow systemd to start rsyslog on demand, only when a connection comes. – Pub