which systemd systemctl services to disable or mask?

Issues related to applications and software problems
Post Reply
ron7000
Posts: 162
Joined: 2019/01/15 20:00:28

which systemd systemctl services to disable or mask?

Post by ron7000 » 2019/06/03 15:46:16

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?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: which systemd systemctl services to disable or mask?

Post by hunter86_bg » 2019/06/07 16:33:55

Keep the defaults.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: which systemd systemctl services to disable or mask?

Post by lightman47 » 2019/06/07 21:45:32

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.
;)

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: which systemd systemctl services to disable or mask?

Post by hunter86_bg » 2019/06/08 13:56:16

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

Post Reply