DBUS-CLEANUP-SOCKE(1)

โœจ DBUS-CLEANUP-SOCKE(1) โœจ

ok so this is a page from the User Commands manual, and honestly bestie, it's a little tiny one but it's got lore ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

dbus-cleanup-sockets โ€” the little guy that cleans up leftover sockets in a directory ๐Ÿงนโœจ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

dbus-cleanup-sockets [DIRECTORY]

like, you can hand it a directory. or not. it's flexible like that ๐Ÿซถ


๐Ÿ’– DESCRIPTION ๐Ÿ’–

dbus-cleanup-sockets is the command that goes around cleaning up unused D-Bus connection sockets. no cap, that's the whole job. if you want the big-picture tea on what D-Bus even is, the manpage points you at https://www.freedesktop.org/wiki/Software/dbus/ ๐Ÿ‘‘

If you give it no arguments at all, dbus-cleanup-sockets cleans up sockets in the standard default socket directory for the per-user-login-session message bus โ€” which is usually /tmp. that's the default, bestie. Optionally, you can pass a different DIRECTORY on the command line if you're feeling spicy ๐ŸŒถ๏ธ

๐Ÿ’€ important vibe check: on Linux, this program is essentially useless. not "kinda useless" โ€” essentially useless. because D-Bus defaults to using "abstract sockets" that exist only in memory and don't have a corresponding file in /tmp. so there's literally nothing sitting there for it to clean. iconic of Linux tbh ๐Ÿ˜ญ

On most other flavors of UNIX though? it's a whole different story. the socket files can leak when programs using D-Bus exit abnormally or without closing their D-Bus connections. so it might actually be interesting to run dbus-cleanup-sockets in a cron job to mop up any leaked sockets ๐Ÿงผ

Or, honestly? you can just ignore the leaked sockets. they aren't really hurting anything โ€” other than cluttering the output of ls /tmp ๐Ÿ™ˆ like they're just vibing there rent-free.


๐ŸŽ€ AUTHOR ๐ŸŽ€

dbus-cleanup-sockets was adapted by Havoc Pennington from linc-cleanup-sockets, which was written by Michael Meeks. giving credit where credit is due, we love to see it ๐Ÿซถโœจ


โญ BUGS โญ

found a bug? please send bug reports to the D-Bus mailing list or bug tracker โ€” see https://www.freedesktop.org/wiki/Software/dbus/ ๐Ÿ’Œ they genuinely want to hear about it, fr fr.


โœจ that's the whole page, bestie โœจ this one comes from D-Bus 1.16.2, dated 03/03/2025 โ€” go forth and mop up those sockets (or don't, on Linux, because again: useless ๐Ÿ’€) ๐Ÿงš๐Ÿ’œ

๐Ÿ“ฆ where this page comes from