Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Last active April 25, 2025 21:18
Show Gist options
  • Save yordanoweb/289b273aa13a91df86aaaceda3d79850 to your computer and use it in GitHub Desktop.
Save yordanoweb/289b273aa13a91df86aaaceda3d79850 to your computer and use it in GitHub Desktop.
Avoid rtkit-daemon verbosity to system logs

Avoid rtkit-daemon verbosity to system logs

Sometimes, when using Linux, any of them (Mint, Ubuntu, Arch), happens that "journalctl -f" show a lot of messages like:

Apr 25 17:54:50 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/839993/status”: No such file or directory
Apr 25 17:54:56 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:54:58 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:55:02 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:55:03 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:55:13 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/842872/stat”: No such file or directory
Apr 25 17:55:14 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/842997/stat”: No such file or directory
Apr 25 17:55:27 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/844627/status”: No such file or directory
Apr 25 17:55:46 hp-laptop rtkit-daemon[132845]: Successfully made thread 846999 of process 846995 owned by '1000' RT at priority 20.                                 
Apr 25 17:55:49 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/847447/status”: No such file or directory                 
Apr 25 17:55:53 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:55:58 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:56:35 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Error reading file “/proc/853201/stat”: No such process
Apr 25 17:56:36 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:56:44 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:57:04 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Error reading file “/proc/856838/status”: No such process
Apr 25 17:57:05 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/856963/status”: No such file or directory
Apr 25 17:57:12 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/857836/stat”: No such file or directory

To avoid this, modify rtkit-daemon service verbosity.

Create service script override directory

# If directory does not exists, create it
mkdir sudo vi /etc/systemd/system/rtkit-daemon.service.d

Override the service script file

sudo vi /etc/systemd/system/rtkit-daemon.service.d/override.conf

Reduce verbosity in logging output adding this

Service]
LogLevelMax=1

The LogLevelMax set to "1", obeys to this levels:

  • 0 = emergency
  • 1 = alert
  • 2 = critical
  • 3 = error
  • 4 = warning
  • 5 = notice
  • 6 = info
  • 7 = debuginfo

If you set it to "3", you will get log messages for levels "0", "1", "2" and "3". So, if set to "1", you will only get log messages for levels "0" and "1"... Which is quiet enough :)

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment