Init script to clean up dbus spam on shutdown
- Shell 100%
| README.md | ||
| rm-machineid | ||
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
- Save the script (as root) in
/etc/init.d/rm-machineid chmod +x /etc/init.d/rm-machineidupdate-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.