11965N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
11965N/A<!--ArborText, Inc., 1988-1999, v.4002-->
15941N/A<!--ARC : LSARC 2006/368 D-BUS Message Bus System -->
11965N/A<!ENTITY cmd "dbus-cleanup-sockets">
11965N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
11965N/A%commonents;
11965N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
11965N/A%booktitles;
15985N/A<!ENTITY suncopy "Copyright (c) 2007,2009 Sun Microsystems, Inc. All Rights Reserved.">
11965N/A]>
11965N/A<refentry id="dbus-cleanup-sockets-1">
11965N/A<!-- %Z%%M% %I% %E% SMI; -->
15985N/A<refmeta><refentrytitle>&cmd;</refentrytitle><manvolnum>1</manvolnum>
15985N/A<refmiscinfo class="date">25 Feb 2009</refmiscinfo>
11965N/A<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
11965N/A<refmiscinfo class="software">&release;</refmiscinfo>
11965N/A<refmiscinfo class="arch">generic</refmiscinfo>
11965N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
11965N/A</refmeta>
17616N/A<indexterm><primary>&cmd;</primary></indexterm>
17616N/A<indexterm><primary>clean up leftover sockets in a directory</primary></indexterm>
17616N/A<refnamediv id="dbus-cleanup-sockets-1-name">
17616N/A<refname>&cmd;</refname>
17616N/A<refpurpose>clean up leftover sockets in a directory</refpurpose>
17616N/A</refnamediv>
11965N/A<refsynopsisdiv id="dbus-cleanup-sockets-1-synp"><title>&synp-tt;</title>
11965N/A<cmdsynopsis><command>&cmd;</command>
11965N/A<arg choice="opt"><option>-help</option></arg>
11965N/A<arg choice="opt"><option>-version</option></arg>
11965N/A<arg choice="opt"><option role="nodash"><replaceable>directory</replaceable></option></arg>
11965N/A</cmdsynopsis></refsynopsisdiv>
17601N/A
11965N/A<refsect1 id="dbus-cleanup-sockets-1-desc"><title>&desc-tt;</title>
11965N/A<para>
11965N/AThe &cmd; command cleans up unused D\-Bus connection sockets.
11965N/A</para>
17601N/A
11965N/A<para>
15985N/AIf given no arguments, <command>&cmd;</command> cleans up sockets in the
15985N/Astandard default socket directory for the per-user-login-session message bus;
15985N/Athis is usually <filename>/tmp</filename>. Optionally, you can pass a
15985N/Adifferent directory on the command line.
11965N/A</para>
17601N/A
11965N/A<para>
11965N/AOn Linux, this program is essentially useless, because D\-Bus defaults to using
15985N/A&quot;abstract sockets&quot; that exist only in memory and do not have a
15985N/Acorresponding file in <filename>/tmp</filename>.
11965N/A</para>
17601N/A
11965N/A<para>
11965N/AOn most other flavors of UNIX, it is possible for the socket files to leak when
11965N/Aprograms using D\-Bus exit abnormally or without closing their D\-Bus
15985N/Aconnections. Thus, it might be interesting to run <command>&cmd;</command> in a
15985N/Acron job to clean up any leaked sockets. Or you can just ignore the leaked
15985N/Asockets, they are not really hurting anything, other than cluttering the
11965N/A<filename>/tmp</filename> directory.
11965N/A</para>
17601N/A</refsect1>
17601N/A
17601N/A<refsect1 id="dbus-send-1-opts"><title>&opts-tt;</title>
11965N/A<para>
17601N/AThe following options are supported:
11965N/A</para>
17601N/A
11965N/A<variablelist termlength="wholeline">
11965N/A<varlistentry>
11965N/A<term><option>-help</option></term>
11965N/A<listitem><para>
11965N/AShow help information on standard output and exit.
17601N/A</para></listitem></varlistentry>
17601N/A
11965N/A<varlistentry>
11965N/A<term><option>-version</option></term>
11965N/A<listitem><para>
15985N/APrint the version of <command>&cmd;</command>
17601N/A</para></listitem></varlistentry>
17601N/A</variablelist>
17601N/A</refsect1>
17601N/A
17601N/A<refsect1 id="dbus-cleanup-sockets-1-oper"><title>&oper-tt;</title>
17601N/A<para>
17601N/AThe following operands are supported:
11965N/A</para>
17601N/A
11965N/A<variablelist termlength="narrow">
11965N/A<varlistentry>
11965N/A<term><option role="nodash"><replaceable>directory</replaceable></option></term>
11965N/A<listitem><para>
11965N/AClean up sockets in the specified <replaceable>directory</replaceable>
11965N/Arather than the default socket directory.
11965N/A</para>
11965N/A</listitem></varlistentry>
17616N/A</variablelist>
17616N/A</refsect1>
17601N/A
11965N/A<refsect1 id="dbus-cleanup-sockets-1-exit"><title>&exit-tt;</title>
17601N/A<para>
17601N/AThe following exit values are returned:
17601N/A</para>
17601N/A
11965N/A<variablelist termlength="xtranarrow">
11965N/A<varlistentry>
11965N/A<term><returnvalue>0</returnvalue></term>
11965N/A<listitem><para>
11965N/AApplication exited successfully
11965N/A</para>
11965N/A</listitem></varlistentry>
17601N/A
11965N/A<varlistentry>
11965N/A<term><returnvalue>>0</returnvalue></term>
11965N/A<listitem><para>
11965N/AApplication exited with failure
11965N/A</para>
11965N/A</listitem></varlistentry>
17601N/A</variablelist>
17601N/A</refsect1>
17601N/A
11965N/A<refsect1 id="dbus-cleanup-sockets-1-file"><title>&file-tt;</title>
17601N/A<para>
17601N/AThe following files are used by this application:
17601N/A</para>
17601N/A
11965N/A<variablelist termlength="wide">
11965N/A<varlistentry>
11965N/A<term><filename>/usr/bin/&cmd;</filename></term>
11965N/A<listitem><para>
15985N/AExecutable for <command>&cmd;</command>
11965N/A</para>
11965N/A</listitem></varlistentry>
17601N/A
11965N/A<varlistentry>
11965N/A<term><filename>/tmp</filename></term>
11965N/A<listitem><para>
11965N/ADefault location for D\-Bus connection sockets
11965N/A</para>
11965N/A</listitem></varlistentry>
17601N/A</variablelist>
17601N/A</refsect1>
17601N/A
11965N/A<refsect1 id="dbus-cleanup-sockets-1-attr"><title>&attr-tt;</title>
17601N/A<para>
17601N/ASee
17601N/A<olink targetdocent="REFMAN5" localinfo="attributes-5">
17601N/A<citerefentry><refentrytitle>attributes</refentrytitle>
17601N/A<manvolnum>5</manvolnum></citerefentry></olink>
17601N/Afor descriptions of the following attributes:
17601N/A</para>
17601N/A
11965N/A<informaltable frame="all">
17601N/A<tgroup cols="2" colsep="1" rowsep="1">
17601N/A<colspec colname="COLSPEC0" colwidth="1*">
11965N/A<colspec colname="COLSPEC1" colwidth="1*">
11965N/A<thead>
17601N/A<row>
17601N/A<entry align="center" valign="middle">ATTRIBUTE TYPE</entry>
17601N/A<entry align="center" valign="middle">ATTRIBUTE VALUE</entry></row>
11965N/A</thead>
11965N/A<tbody>
17601N/A<row>
17601N/A<entry><para>Availability</para></entry>
18745N/A<entry><para>system/library/dbus</para></entry>
17601N/A</row>
17601N/A<row>
17601N/A<entry colname="COLSPEC0"><para>Interface stability</para></entry>
17601N/A<entry colname="COLSPEC1"><para>Volatile</para></entry>
17601N/A</row>
17601N/A</tbody></tgroup>
11965N/A</informaltable>
11965N/A</refsect1>
17601N/A
11965N/A<refsect1 id="dbus-cleanup-sockets-1-also"><title>&also-tt;</title>
11965N/A<!--Reference to another man page-->
11965N/A<!--Reference to a Help manual-->
11965N/A<!--Reference to a book.-->
11965N/A<para>
17601N/AMore information can be found at:
17601N/A</para>
17601N/A
17601N/A<para>
17601N/A<literal>http://www.freedesktop.org/software/dbus/</literal>
17601N/A</para>
17601N/A
17601N/A<para>
15995N/A<citerefentry><refentrytitle>dbus-binding-tool</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
13931N/A<citerefentry><refentrytitle>dbus-daemon</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11965N/A<citerefentry><refentrytitle>dbus-launch</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11965N/A<citerefentry><refentrytitle>dbus-monitor</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11965N/A<citerefentry><refentrytitle>dbus-send</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11965N/A<citerefentry><refentrytitle>dbus-uuidgen</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11965N/A<citerefentry><refentrytitle>libdbus-glib-1</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
11965N/A<citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry>
11965N/A</para>
11965N/A</refsect1>
17601N/A
11965N/A<refsect1 id="dbus-cleanup-sockets-1-note"><title>&note-tt;</title>
11965N/A<para>
11965N/AFor authorship information refer to
11965N/A<literal>http://www.freedesktop.org/software/dbus/doc/AUTHORS</literal>.
11965N/AUpdated by Brian Cameron, Sun Microsystems Inc., 2007.
11965N/A</para>
17601N/A
11965N/A<para>
15985N/A<command>&cmd;</command> was adapted by Havoc Pennington from
11965N/Alinc-cleanup-sockets written by Michael Meeks. Documentation updated by Brian
11965N/ACameron, Sun Microsystems Inc., 2007.
11965N/A</para>
17601N/A
11965N/A<para>
11965N/APlease send bug reports to the D\-Bus mailing list or bug
11965N/Atracker, see
11965N/A<literal>http://www.freedesktop.org/software/dbus/</literal>
11965N/A</para>
11965N/A</refsect1>
11965N/A</refentry>