3

On some servers (running ubuntu 18.04) I have a process "systemd --user" that uses ~10% of the CPU in average. Only the root user needs to start services.

Is this process really needed and how can I disable it?

3
  • You can't disable it, it's really needed Feb 14, 2019 at 9:33
  • Only you can tell us, with that little information in the question. Do users run GUI desktops on these "servers"? Do the users use audio? Or CJKV input methods?
    – JdeBP
    Feb 14, 2019 at 9:38
  • no GUI, no audio, no CJKV input methods
    – Maxime
    Feb 14, 2019 at 10:26

3 Answers 3

2

You can revert to good 'ol init and remove systemd, a new(ish) replacement which has replaced many of the traditional Linux does one thing and does it well apps.

Wikipedia gives a good overview of init and systemd as well as many relevant resources, which is good, for the subject can become controversial to some folks.

The (partisan) blog Without Systemd outlines how to do it if you run Xubuntu 16.04, but I would encourage much study and thought before doing so.

1

You can disable it by disabling the pam_systemd PAM. However, you also thereby lose the automatic setting of the XDG_RUNTIME_DIR environment variable, creation of a per-user runtime directory, and creation of certain control groups, as well, note. You'll have to gauge how much of a loss this is.

Further reading

0

I have used this commands to disable it:

systemctl mask systemd-logind.service
pam-auth-update

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .