chiark / gitweb /
man: add references to the new inhibitor lock documentation
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Jun 2012 00:07:40 +0000 (02:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Jun 2012 14:14:43 +0000 (16:14 +0200)
TODO
man/systemd-inhibit.xml
man/systemd-logind.service.xml

diff --git a/TODO b/TODO
index 0496c06..01b5edc 100644 (file)
--- a/TODO
+++ b/TODO
@@ -25,6 +25,10 @@ Bugfixes:
 
 Features:
 
+* logind: export a bool property that tells user whether a
+  suspend/shutdown is currently scheduled, i.e. where are between
+  PrepareForSuspend(true) and PrepareForSuspend(false)
+
 * support debian's console-setup logic
 
 * introduce Type=pid-file
index bea4724..81ec9ef 100644 (file)
                 to avoid system suspends while an optical disc is
                 being recorded, or similar operations that should not
                 be interrupted.</para>
+
+                <para>For more information see the <ulink
+                url="http://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
+                Lock Developer Documentation</ulink>.</para>
         </refsect1>
 
         <refsect1>
                                 <literal>shutdown</literal>,
                                 <literal>sleep</literal>,
                                 <literal>idle</literal>, for
-                                inhibiting reboot/power-off/halt/kexec,
+                                inhibiting
+                                reboot/power-off/halt/kexec,
                                 suspending/hibernating, resp. the
-                                automatic idle
-                                detection.</para></listitem>
+                                automatic idle detection. If ommitted
+                                defaults to
+                                <literal>idle:sleep:shutdown</literal>,
+                                i.e. takes all possible
+                                locks.</para></listitem>
                         </varlistentry>
 
                         <varlistentry>
                                 inhibition locks instead of acquiring
                                 one.</para></listitem>
                         </varlistentry>
-
-
                 </variablelist>
 
         </refsect1>
         </refsect1>
 
         <refsect1>
+                <title>Example</title>
+
+                <programlisting># systemd-inhibit wodim foobar.iso</programlisting>
+
+                <para>This burns the ISO image
+                <filename>foobar.iso</filename> on a CD using
+                <citerefentry><refentrytitle>wodim</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+                and inhibits system sleeping, shutdown and idle while
+                doing so.</para>
+        </refsect1>
+
+        <refsect1>
                 <title>See Also</title>
                 <para>
                         <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
index 05fcde3..436c277 100644 (file)
 
                 <para>See the <ulink
                 url="http://www.freedesktop.org/wiki/Software/systemd/logind">
-                developer documentation</ulink> for information about
+                logind D-Bus API Documentation</ulink> for information about
                 the APIs <filename>systemd-logind</filename>
                 provides.</para>
+
+                <para>For more information on the inhibition logic see
+                the <ulink
+                url="http://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
+                Lock Developer Documentation</ulink>.</para>
         </refsect1>
 
         <refsect1>