11223
|
1 |
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
|
|
2 |
<!--ArborText, Inc., 1988-1999, v.4002-->
|
|
3 |
<!ENTITY cmd "dbus-cleanup-sockets">
|
|
4 |
<!ENTITY % commonents SYSTEM "smancommon.ent">
|
|
5 |
%commonents;
|
|
6 |
<!ENTITY % booktitles SYSTEM "booktitles.ent">
|
|
7 |
%booktitles;
|
|
8 |
<!ENTITY suncopy "Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.">
|
|
9 |
]>
|
|
10 |
<?Pub UDT _bookmark _target>
|
|
11 |
<?Pub Inc>
|
|
12 |
<refentry id="dbus-cleanup-sockets-1">
|
|
13 |
<!-- %Z%%M% %I% %E% SMI; -->
|
|
14 |
<refmeta><refentrytitle>dbus-cleanup-sockets</refentrytitle><manvolnum>1</manvolnum>
|
|
15 |
<refmiscinfo class="date">19 Nov 2007</refmiscinfo>
|
|
16 |
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
|
|
17 |
<refmiscinfo class="software">&release;</refmiscinfo>
|
|
18 |
<refmiscinfo class="arch">generic</refmiscinfo>
|
|
19 |
<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
|
|
20 |
</refmeta>
|
|
21 |
<indexterm><primary>dbus-cleanup-sockets</primary></indexterm><indexterm><primary>
|
|
22 |
clean up leftover sockets in a directory
|
|
23 |
</primary></indexterm><refnamediv id="dbus-cleanup-sockets-1-name">
|
|
24 |
<refname>dbus-cleanup-sockets</refname><refpurpose>
|
|
25 |
clean up leftover sockets in a directory
|
|
26 |
</refpurpose></refnamediv>
|
|
27 |
<refsynopsisdiv id="dbus-cleanup-sockets-1-synp"><title>&synp-tt;</title>
|
|
28 |
<cmdsynopsis><command>&cmd;</command>
|
|
29 |
<arg choice="opt"><option>-help</option></arg>
|
|
30 |
<arg choice="opt"><option>-version</option></arg>
|
|
31 |
<arg choice="opt"><option role="nodash"><replaceable>directory</replaceable></option></arg>
|
|
32 |
</cmdsynopsis></refsynopsisdiv>
|
|
33 |
<refsect1 id="dbus-cleanup-sockets-1-desc"><title>&desc-tt;</title>
|
|
34 |
<para>
|
|
35 |
The &cmd; command cleans up unused D\-Bus connection sockets.
|
|
36 |
</para>
|
|
37 |
<para>
|
|
38 |
If given no arguments, &cmd; cleans up sockets in the standard default socket
|
|
39 |
directory for the per-user-login-session message bus; this is usually
|
|
40 |
<filename>/tmp</filename>. Optionally, you can pass a different directory on
|
|
41 |
the command line.
|
|
42 |
</para>
|
|
43 |
<para>
|
|
44 |
On Linux, this program is essentially useless, because D\-Bus defaults to using
|
|
45 |
"abstract sockets" that exist only in memory and don't have a corresponding
|
|
46 |
file in <filename>/tmp</filename>.
|
|
47 |
</para>
|
|
48 |
<para>
|
|
49 |
On most other flavors of UNIX, it is possible for the socket files to leak when
|
|
50 |
programs using D\-Bus exit abnormally or without closing their D\-Bus
|
|
51 |
connections. Thus, it might be interesting to run &cmd; in a cron job to
|
|
52 |
clean up any leaked sockets. Or you can just ignore the leaked sockets, they
|
|
53 |
are not really hurting anything, other than cluttering the
|
|
54 |
<filename>/tmp</filename> directory.
|
|
55 |
</para>
|
|
56 |
<para>
|
|
57 |
See <literal>http://www.freedesktop.org/software/dbus/</literal> for more
|
|
58 |
information.
|
|
59 |
</para>
|
|
60 |
</refsect1>
|
|
61 |
<refsect1 id="dbus-send-1-opts"><title>&opts-tt;</title>
|
|
62 |
<para>The following options are supported:</para>
|
|
63 |
<variablelist termlength="wholeline">
|
|
64 |
<varlistentry>
|
|
65 |
<term><option>-help</option></term>
|
|
66 |
<listitem><para>
|
|
67 |
Show help information on standard output and exit.
|
|
68 |
</para>
|
|
69 |
</listitem></varlistentry>
|
|
70 |
<varlistentry>
|
|
71 |
<term><option>-version</option></term>
|
|
72 |
<listitem><para>
|
|
73 |
Print the version of &cmd;
|
|
74 |
</para>
|
|
75 |
</listitem></varlistentry>
|
|
76 |
</variablelist></refsect1>
|
|
77 |
<refsect1 id="dbus-cleanup-sockets-1-oper"><title>&oper-tt;</title>
|
|
78 |
<para>The following operands are supported:</para>
|
|
79 |
<variablelist termlength="narrow">
|
|
80 |
<varlistentry>
|
|
81 |
<term><option role="nodash"><replaceable>directory</replaceable></option></term>
|
|
82 |
<listitem><para>
|
|
83 |
Clean up sockets in the specified <replaceable>directory</replaceable>
|
|
84 |
rather than the default socket directory.
|
|
85 |
</para>
|
|
86 |
</listitem></varlistentry>
|
|
87 |
</variablelist></refsect1>
|
|
88 |
<refsect1 id="dbus-cleanup-sockets-1-exit"><title>&exit-tt;</title>
|
|
89 |
<para>The following exit values are returned:</para>
|
|
90 |
<variablelist termlength="xtranarrow">
|
|
91 |
<varlistentry>
|
|
92 |
<term><returnvalue>0</returnvalue></term>
|
|
93 |
<listitem><para>
|
|
94 |
Application exited successfully
|
|
95 |
</para>
|
|
96 |
</listitem></varlistentry>
|
|
97 |
<varlistentry>
|
|
98 |
<term><returnvalue>>0</returnvalue></term>
|
|
99 |
<listitem><para>
|
|
100 |
Application exited with failure
|
|
101 |
</para>
|
|
102 |
</listitem></varlistentry>
|
|
103 |
</variablelist></refsect1>
|
|
104 |
<refsect1 id="dbus-cleanup-sockets-1-file"><title>&file-tt;</title>
|
|
105 |
<para>The following files are used by this application:</para>
|
|
106 |
<variablelist termlength="wide">
|
|
107 |
<varlistentry>
|
|
108 |
<term><filename>/usr/bin/&cmd;</filename></term>
|
|
109 |
<listitem><para>
|
|
110 |
Executable for &cmd;
|
|
111 |
</para>
|
|
112 |
</listitem></varlistentry>
|
|
113 |
<varlistentry>
|
|
114 |
<term><filename>/tmp</filename></term>
|
|
115 |
<listitem><para>
|
|
116 |
Default location for D\-Bus connection sockets
|
|
117 |
</para>
|
|
118 |
</listitem></varlistentry>
|
|
119 |
</variablelist></refsect1>
|
|
120 |
<refsect1 id="dbus-cleanup-sockets-1-attr"><title>&attr-tt;</title>
|
|
121 |
<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
|
|
122 |
<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
|
|
123 |
for descriptions of the following attributes:</para>
|
|
124 |
<informaltable frame="all">
|
|
125 |
<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
|
|
126 |
<colspec colname="COLSPEC1" colwidth="1*">
|
|
127 |
<thead>
|
|
128 |
<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
|
|
129 |
valign="middle">ATTRIBUTE VALUE</entry></row>
|
|
130 |
</thead>
|
|
131 |
<tbody>
|
|
132 |
<row><entry>
|
|
133 |
<para>Availability</para>
|
|
134 |
</entry><entry>
|
|
135 |
<para>SUNWdbus</para>
|
|
136 |
</entry></row><row><entry colname="COLSPEC0">
|
|
137 |
<para>Interface stability</para>
|
|
138 |
</entry><entry colname="COLSPEC1">
|
|
139 |
<para>Volatile</para></entry></row>
|
|
140 |
</tbody>
|
|
141 |
</tgroup>
|
|
142 |
</informaltable>
|
|
143 |
</refsect1>
|
|
144 |
<refsect1 id="dbus-cleanup-sockets-1-also"><title>&also-tt;</title>
|
|
145 |
<!--Reference to another man page-->
|
|
146 |
<!--Reference to a Help manual-->
|
|
147 |
<!--Reference to a book.-->
|
|
148 |
<para>
|
13189
|
149 |
<citerefentry><refentrytitle>dbus-daemon</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
11223
|
150 |
<citerefentry><refentrytitle>dbus-launch</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
|
151 |
<citerefentry><refentrytitle>dbus-monitor</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
|
152 |
<citerefentry><refentrytitle>dbus-send</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
|
153 |
<citerefentry><refentrytitle>dbus-uuidgen</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
|
154 |
<citerefentry><refentrytitle>libdbus-glib-1</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
155 |
<citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
|
156 |
</para>
|
|
157 |
</refsect1>
|
|
158 |
<refsect1 id="dbus-cleanup-sockets-1-note"><title>¬e-tt;</title>
|
|
159 |
<para>
|
|
160 |
For authorship information refer to
|
|
161 |
<literal>http://www.freedesktop.org/software/dbus/doc/AUTHORS</literal>.
|
|
162 |
Updated by Brian Cameron, Sun Microsystems Inc., 2007.
|
|
163 |
</para>
|
|
164 |
<para>
|
|
165 |
dbus-cleanup-sockets was adapted by Havoc Pennington from
|
|
166 |
linc-cleanup-sockets written by Michael Meeks. Documentation updated by Brian
|
|
167 |
Cameron, Sun Microsystems Inc., 2007.
|
|
168 |
</para>
|
|
169 |
<para>
|
|
170 |
Please send bug reports to the D\-Bus mailing list or bug
|
|
171 |
tracker, see
|
|
172 |
<literal>http://www.freedesktop.org/software/dbus/</literal>
|
|
173 |
</para>
|
|
174 |
</refsect1>
|
|
175 |
</refentry>
|