Init script to clean up dbus spam on shutdown
Find a file
2026-05-01 17:54:15 +00:00
README.md Update README.md 2026-05-01 17:54:15 +00:00
rm-machineid Add rm-machineid 2026-05-01 16:38:17 +00:00

rm-machineid - Clean up D-Bus session-bus spam on Devuan

Devuan rotates the machine-id on every boot for privacy (one of the few distros that does this, great feature!).
This causes D-Bus to create a new ~/.dbus/session-bus/ file each time, with old files never being cleaned up.
Over time this can lead to hundreds of stale files.

This simple init script removes the stale session-bus files on shutdown (and also cleans /etc/machine-id on legacy/migrated systems).

Installation

  1. Save the script (as root) in /etc/init.d/rm-machineid
  2. chmod +x /etc/init.d/rm-machineid
  3. update-rc.d rm-machineid defaults 00

The script runs only on shutdown/reboot and is a lightweight, reliable fix.

Also available in Daemonratte's Seamless Devuan project.