a52f674
From 5ac6fce073ab60cc8efa29dec0c9e7462da1b3be Mon Sep 17 00:00:00 2001
b12ff75
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
b12ff75
Date: Sat, 11 Jan 2014 23:44:34 -0500
b12ff75
Subject: [PATCH] man: add busctl(1)
b12ff75
a52f674
(cherry picked from commit 708c143c7cd2bbd748ac0fa993496ff44e72701c)
a52f674
b12ff75
Conflicts:
b12ff75
	Makefile-man.am
b12ff75
	TODO
b12ff75
	man/systemd-bus-proxyd.xml
b12ff75
---
b12ff75
 Makefile-man.am |   1 +
b12ff75
 man/busctl.xml  | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
b12ff75
 2 files changed, 207 insertions(+)
b12ff75
 create mode 100644 man/busctl.xml
b12ff75
b12ff75
diff --git a/Makefile-man.am b/Makefile-man.am
b12ff75
index 3f626e8..9c3cb35 100644
b12ff75
--- a/Makefile-man.am
b12ff75
+++ b/Makefile-man.am
b12ff75
@@ -3,6 +3,7 @@
b12ff75
 
b12ff75
 MANPAGES += \
b12ff75
 	man/bootup.7 \
b12ff75
+	man/busctl.1 \
b12ff75
 	man/daemon.7 \
b12ff75
 	man/halt.8 \
b12ff75
 	man/hostname.5 \
b12ff75
diff --git a/man/busctl.xml b/man/busctl.xml
b12ff75
new file mode 100644
b12ff75
index 0000000..0c5f05a
b12ff75
--- /dev/null
b12ff75
+++ b/man/busctl.xml
b12ff75
@@ -0,0 +1,206 @@
b12ff75
+ 
b12ff75
+
b12ff75
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
b12ff75
+
b12ff75
+
b12ff75
+This file is part of systemd.
b12ff75
+
b12ff75
+Copyright 2014 Zbigniew Jędrzejewski-Szmek
b12ff75
+
b12ff75
+systemd is free software; you can redistribute it and/or modify it
b12ff75
+under the terms of the GNU Lesser General Public License as published by
b12ff75
+the Free Software Foundation; either version 2.1 of the License, or
b12ff75
+(at your option) any later version.
b12ff75
+
b12ff75
+systemd is distributed in the hope that it will be useful, but
b12ff75
+WITHOUT ANY WARRANTY; without even the implied warranty of
b12ff75
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b12ff75
+Lesser General Public License for more details.
b12ff75
+
b12ff75
+You should have received a copy of the GNU Lesser General Public License
b12ff75
+along with systemd; If not, see <http://www.gnu.org/licenses/>.
b12ff75
+-->
b12ff75
+
b12ff75
+<refentry id="busctl">
b12ff75
+
b12ff75
+  <refentryinfo>
b12ff75
+    <title>busctl</title>
b12ff75
+    <productname>systemd</productname>
b12ff75
+
b12ff75
+    <authorgroup>
b12ff75
+      <author>
b12ff75
+        <contrib>A monkey with a typewriter</contrib>
b12ff75
+        <firstname>Zbigniew</firstname>
b12ff75
+        <surname>Jędrzejewski-Szmek</surname>
b12ff75
+        <email>zbyszek@in.waw.pl</email>
b12ff75
+      </author>
b12ff75
+    </authorgroup>
b12ff75
+  </refentryinfo>
b12ff75
+
b12ff75
+  <refmeta>
b12ff75
+    <refentrytitle>busctl</refentrytitle>
b12ff75
+    <manvolnum>1</manvolnum>
b12ff75
+  </refmeta>
b12ff75
+
b12ff75
+  <refnamediv>
b12ff75
+    <refname>busctl</refname>
b12ff75
+    <refpurpose>Introspect the bus</refpurpose>
b12ff75
+  </refnamediv>
b12ff75
+
b12ff75
+  <refsynopsisdiv>
b12ff75
+    <cmdsynopsis>
b12ff75
+      <command>busctl</command>
b12ff75
+      <arg choice="opt" rep="repeat">OPTIONS</arg>
b12ff75
+      <arg choice="opt">COMMAND</arg>
b12ff75
+      <arg choice="opt" rep="repeat"><replaceable>NAME</replaceable></arg>
b12ff75
+    </cmdsynopsis>
b12ff75
+  </refsynopsisdiv>
b12ff75
+
b12ff75
+  <refsect1>
b12ff75
+    <title>Description</title>
b12ff75
+
b12ff75
+    <para><command>busctl</command> may be used to
b12ff75
+    introspect and monitor the D-Bus bus.</para>
b12ff75
+  </refsect1>
b12ff75
+
b12ff75
+  <refsect1>
b12ff75
+    <title>Options</title>
b12ff75
+
b12ff75
+    <para>The following options are understood:</para>
b12ff75
+
b12ff75
+    <variablelist>
b12ff75
+      <varlistentry>
b12ff75
+        <term><option>-h</option></term>
b12ff75
+        <term><option>--help</option></term>
b12ff75
+
b12ff75
+        <listitem><para>Print a short help text and exit.
b12ff75
+        </para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+        <term><option>--version</option></term>
b12ff75
+
b12ff75
+        <listitem>
b12ff75
+          <para>Print a short version string and exit.</para>
b12ff75
+        </listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+        <term><option>--no-pager</option></term>
b12ff75
+
b12ff75
+        <listitem>
b12ff75
+          <para>Do not pipe output into a pager.</para>
b12ff75
+        </listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+        <term><option>--system</option></term>
b12ff75
+
b12ff75
+        <listitem>
b12ff75
+          <para>Talk to the systemd system manager (the
b12ff75
+          default).</para>
b12ff75
+        </listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+        <term><option>--user</option></term>
b12ff75
+
b12ff75
+        <listitem>
b12ff75
+          <para>Talk to the systemd manager of the calling
b12ff75
+          user.</para>
b12ff75
+        </listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+          <term><option>--address=<replaceable>ADDRESS</replaceable></option></term>
b12ff75
+
b12ff75
+          <listitem><para>Connect to the bus specified by
b12ff75
+          <replaceable>ADDRESS</replaceable> instead of using suitable
b12ff75
+          defaults for either the system or user bus (see
b12ff75
+          <option>--system</option> and <option>--user</option>
b12ff75
+          options).</para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+          <term><option>--show-machine</option></term>
b12ff75
+
b12ff75
+          <listitem><para>When showing the list of endpoints, show a
b12ff75
+          column containing the names of containers they belong to.
b12ff75
+          See
b12ff75
+          <citerefentry><refentrytitle>systemd-machined.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
b12ff75
+          </para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+          <term><option>--unique</option></term>
b12ff75
+
b12ff75
+          <listitem><para>When showing the list of endpoints, show
b12ff75
+          only "unique" names (of the form
b12ff75
+          <literal>:<replaceable>number</replaceable>.<replaceable>number</replaceable></literal>).
b12ff75
+          </para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+          <term><option>--acquired</option></term>
b12ff75
+
b12ff75
+          <listitem><para>The opposite of <option>--unique</option> —
b12ff75
+          only "well-known" names will be shown.</para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+          <term><option>--activatable</option></term>
b12ff75
+
b12ff75
+          <listitem><para>When showing the list of endpoints, show
b12ff75
+          only endpoints which haven't actually been activated yet,
b12ff75
+          but may be started automatically if accessed.</para>
b12ff75
+          </listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+          <term><option>--match=<replaceable>MATCH</replaceable></option></term>
b12ff75
+
b12ff75
+          <listitem><para>When showing messages being exchanged, show only the
b12ff75
+          subset matching <replaceable>MATCH</replaceable>.</para></listitem>
b12ff75
+          
b12ff75
+      </varlistentry>
b12ff75
+    </variablelist>
b12ff75
+  </refsect1>
b12ff75
+
b12ff75
+  <refsect1>
b12ff75
+    <title>Commands</title>
b12ff75
+
b12ff75
+    <para>The following commands are understood:</para>
b12ff75
+
b12ff75
+    <variablelist>
b12ff75
+      <varlistentry>
b12ff75
+        <term><command>list</command></term>
b12ff75
+
b12ff75
+        <listitem><para>Show endpoints attached to the bus. This is
b12ff75
+        the default if no command is specified.</para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+
b12ff75
+      <varlistentry>
b12ff75
+        <term><command>monitor</command>  <arg choice="opt" rep="repeat"><replaceable>NAME</replaceable></arg></term>
b12ff75
+
b12ff75
+        <listitem><para>Dump messages being exchanged. If
b12ff75
+        <replaceable>NAME</replaceable> is specified, show messages
b12ff75
+        to or from this endpoint. Otherwsise, show all messages on the
b12ff75
+        bus.</para></listitem>
b12ff75
+      </varlistentry>
b12ff75
+    </variablelist>
b12ff75
+  </refsect1>
b12ff75
+
b12ff75
+  <refsect1>
b12ff75
+    <title>See Also</title>
b12ff75
+
b12ff75
+    <para>
b12ff75
+      <citerefentry><refentrytitle>dbus-daemon</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
b12ff75
+      <ulink url="http://freedesktop.org/wiki/Software/dbus">D-Bus</ulink>,
b12ff75
+      <ulink url="https://code.google.com/p/d-bus/">kdbus</ulink>,
b12ff75
+      <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
b12ff75
+      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
b12ff75
+      <citerefentry><refentrytitle>systemd-bus-proxyd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
b12ff75
+      <citerefentry><refentrytitle>machinectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
b12ff75
+    </para>
b12ff75
+  </refsect1>
b12ff75
+</refentry>