[systemd-devel] [v3 1/4] man: these binaries are internal APIs

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Mar 15 09:59:57 PDT 2015


On Fri, Feb 27, 2015 at 05:04:21PM -0800, Shawn Landden wrote:
> ---
>  man/systemd-halt.service.xml      | 1 -
>  man/systemd-shutdownd.service.xml | 1 -
>  man/systemd-suspend.service.xml   | 1 -
>  3 files changed, 3 deletions(-)
> 
> diff --git a/man/systemd-halt.service.xml b/man/systemd-halt.service.xml
> index c94e2a1..7e7f8f2 100644
> --- a/man/systemd-halt.service.xml
> +++ b/man/systemd-halt.service.xml
> @@ -56,7 +56,6 @@
>      <para><filename>systemd-poweroff.service</filename></para>
>      <para><filename>systemd-reboot.service</filename></para>
>      <para><filename>systemd-kexec.service</filename></para>
> -    <para><filename>/usr/lib/systemd/systemd-shutdown</filename></para>
>    </refsynopsisdiv>
Hm, I was going back and forth on this patch... You are certainly right that
the user should never call those binaries directly. But we do list other
binaries in the documentation in similar circumstances. And I think we should
continue to do so, for two reasons:
1. when trying to understand how everythig works it makes it easier to start
with the documentation and see what binaries are used to do various things.
2. when looking for something related, it makes it easier to distinguish
various commands with a similar name. ("This systemd-sleep binary is not
the binary you're looking for." :))

Maybe we should move the binary to FILES section and mention that it should
not be called directly. But then this should be done also for systemd-journald
and others which are never called directly.

Zbyszek

>  
>    <refsect1>
> diff --git a/man/systemd-shutdownd.service.xml b/man/systemd-shutdownd.service.xml
> index 756949c..051d2ab 100644
> --- a/man/systemd-shutdownd.service.xml
> +++ b/man/systemd-shutdownd.service.xml
> @@ -52,7 +52,6 @@
>    <refsynopsisdiv>
>      <para><filename>systemd-shutdownd.service</filename></para>
>      <para><filename>systemd-shutdownd.socket</filename></para>
> -    <para><filename>/usr/lib/systemd/systemd-shutdownd</filename></para>
>    </refsynopsisdiv>
>  
>    <refsect1>
> diff --git a/man/systemd-suspend.service.xml b/man/systemd-suspend.service.xml
> index a8beb86..8e3df5f 100644
> --- a/man/systemd-suspend.service.xml
> +++ b/man/systemd-suspend.service.xml
> @@ -56,7 +56,6 @@
>      <para><filename>systemd-suspend.service</filename></para>
>      <para><filename>systemd-hibernate.service</filename></para>
>      <para><filename>systemd-hybrid-sleep.service</filename></para>
> -    <para><filename>/usr/lib/systemd/system-sleep</filename></para>
>    </refsynopsisdiv>
>  
>    <refsect1>
> -- 
> 2.2.1.209.g41e5f3a
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list