1dbus-cleanup-sockets(1) General Commands Manual dbus-cleanup-sockets(1)
2
3
4
6 dbus-cleanup-sockets - clean up leftover sockets in a directory
7
9 dbus-cleanup-sockets [DIRECTORY]
10
11
13 The dbus-cleanup-sockets command cleans up unused D-Bus connection
14 sockets. See http://www.freedesktop.org/software/dbus/ for more infor‐
15 mation about the big picture.
16
17
18 If given no arguments, dbus-cleanup-sockets cleans up sockets in the
19 standard default socket directory for the per-user-login-session mes‐
20 sage bus; this is usually /tmp. Optionally, you can pass a different
21 directory on the command line.
22
23
24 On Linux, this program is essentially useless, because D-Bus defaults
25 to using "abstract sockets" that exist only in memory and don't have a
26 corresponding file in /tmp.
27
28
29 On most other flavors of UNIX, it's possible for the socket files to
30 leak when programs using D-Bus exit abnormally or without closing their
31 D-Bus connections. Thus, it might be interesting to run dbus-cleanup-
32 sockets in a cron job to mop up any leaked sockets. Or you can just
33 ignore the leaked sockets, they aren't really hurting anything, other
34 than cluttering the output of "ls /tmp"
35
36
38 dbus-cleanup-sockets was adapted by Havoc Pennington from linc-cleanup-
39 sockets written by Michael Meeks.
40
41
43 Please send bug reports to the D-Bus mailing list or bug tracker, see
44 http://www.freedesktop.org/software/dbus/
45
46
47
48 dbus-cleanup-sockets(1)