loginctl: convert to sd-bus

NOTE: the show-* subcommands do not print some properties:
  this are those with types like (so), a(so), (uo),...
  we need to fix this, but I'm not sure how
This commit is contained in:
Simon Peeters 2013-11-07 08:58:23 +01:00 committed by Lennart Poettering
parent 63be1989c7
commit f8f14b3654
3 changed files with 620 additions and 953 deletions

View file

@ -3847,14 +3847,12 @@ loginctl_SOURCES = \
src/login/loginctl.c \
src/login/sysfs-show.c
loginctl_CFLAGS = \
$(AM_CFLAGS) \
$(DBUS_CFLAGS)
loginctl_LDADD = \
libsystemd-dbus.la \
libsystemd-bus-internal.la \
libudev-internal.la \
libsystemd-shared.la
libsystemd-shared.la \
libsystemd-id128-internal.la \
libsystemd-daemon-internal.la
rootbin_PROGRAMS += \
loginctl

View file

@ -86,6 +86,42 @@
string and exits.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--no-pager</option></term>
<listitem><para>Do not pipe output into a
pager.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--no-ask-password</option></term>
<listitem><para>Do not query the user
for authentication for privileged
operations.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-H</option></term>
<term><option>--host</option></term>
<listitem><para>Execute the operation
remotely. Specify a hostname, or
username and hostname separated by <literal>@</literal>,
to connect to. This will use SSH to
talk to the remote login manager
instance.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-M</option></term>
<term><option>--machine=</option></term>
<listitem><para>Execute the operation on a
local container. Specify a container
name to connect to.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-p</option></term>
<term><option>--property=</option></term>
@ -122,21 +158,6 @@
</listitem>
</varlistentry>
<varlistentry>
<term><option>--no-pager</option></term>
<listitem><para>Do not pipe output into a
pager.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--no-ask-password</option></term>
<listitem><para>Do not query the user
for authentication for privileged
operations.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--kill-who=</option></term>
@ -168,26 +189,6 @@
<constant>SIGTERM</constant>.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-H</option></term>
<term><option>--host</option></term>
<listitem><para>Execute the operation
remotely. Specify a hostname, or
username and hostname separated by <literal>@</literal>,
to connect to. This will use SSH to
talk to the remote login manager
instance.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-P</option></term>
<term><option>--privileged</option></term>
<listitem><para>Acquire privileges via
PolicyKit before executing the
operation.</para></listitem>
</varlistentry>
</variablelist>
<para>The following commands are understood:</para>

File diff suppressed because it is too large Load diff