Page 1 of 1

which systemd systemctl services to disable or mask?

Posted: 2019/06/03 15:46:16
by ron7000
Installing server with gui, everything seems to be running fine on server however the /var/log/messages has many entries such as Started Fingerprint Authentication Daemon and that is repeated many times. I want to clean things up.

Code: Select all

systemctl list-unit-files
{not typing all in}
369 unit files listed.
Among the many in /var/log/messages there are these kind of entries: dbus-org.freedesktop.***.**
I don't want to see this, among others.

Is there any good list showing what services either should be, or can safely be, disabled or masked?
My understanding is a service setting of static basically means it is enabled (if needed) and would be started [dynamically?] be some other service it is a dependency to?

Re: which systemd systemctl services to disable or mask?

Posted: 2019/06/07 16:33:55
by hunter86_bg
Keep the defaults.

Re: which systemd systemctl services to disable or mask?

Posted: 2019/06/07 21:45:32
by lightman47
As hunter86_bg suggests - resist the urge! You may not want the services today, but it won't be long before you decide you want to install something that expects them to be running.
;)

Re: which systemd systemctl services to disable or mask?

Posted: 2019/06/08 13:56:16
by hunter86_bg
If you want to filter some of the messages , you can do the following:

Code: Select all

echo 'if $programname == "systemd" and ($msg contains "Starting Session" or $msg contains "Started Session" or $msg contains "Created slice" or $msg contains "Starting user-" or $msg contains "Starting User Slice of" or $msg contains "Removed session" or $msg contains "Removed slice User Slice of" or $msg contains "Stopping User Slice of") then stop' >/etc/rsyslog.d/ignore-systemd-session-slice.conf
systemctl restart rsyslog
You might have to replace '$programname == "systemd"' with '$programname == "systemd-logind"'.

Source: https://access.redhat.com/solutions/1564823