chiark / gitweb /
man: avoid the use of sudo in examples
[elogind.git] / man / systemd-socket-proxyd.xml
index 90b3b1c3a4f087a2ed36049640c1a3af72e92d93..d17c86e479612c9e0aaf5ad0d5e4a2de8f4c87ce 100644 (file)
@@ -46,7 +46,7 @@
                 <cmdsynopsis>
                         <command>systemd-socket-proxyd</command>
                         <arg choice="opt" rep="repeat">OPTIONS</arg>
-                        <arg choice="plain"><replaceable>HOSTNAME-OR-IP</replaceable></arg>
+                        <arg choice="plain"><replaceable>HOSTNAME-OR-IPADDR</replaceable></arg>
                         <arg choice="plain"><replaceable>PORT-OR-SERVICE</replaceable></arg>
                 </cmdsynopsis>
                 <cmdsynopsis>
@@ -67,7 +67,7 @@
                 for each client, and then bidirectionally forwards
                 data between the two.</para>
                 <para>This utility's behavior is similar to
-                <citerefentry><refentrytitle>socat</refentrytitle><manvolnum>1</manvolnum> </citerefentry>.
+                <citerefentry><refentrytitle>socat</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
                 The main differences for <command>systemd-socket-proxyd</command>
                 are support for socket activation with
                 <literal>Accept=false</literal> and an event-driven
                                 <listitem>
                                         <para>Skips verification of
                                         the expected PID and file
-                                        descriptor numbers. Use if
+                                        descriptor numbers. Use this if
                                         invoked indirectly, for
-                                        example with a shell script
+                                        example, with a shell script
                                         rather than with
-                                        <option>ExecStart=/usr/bin/systemd-socket-proxyd</option>
+                                        <option>ExecStart=/usr/lib/systemd/systemd-socket-proxyd</option>
                                         </para>
                                 </listitem>
                         </varlistentry>
         </refsect1>
         <refsect1>
                 <title>Exit status</title>
-                <para>On success 0 is returned, a non-zero failure
+                <para>On success, 0 is returned, a non-zero failure
                 code otherwise.</para>
         </refsect1>
         <refsect1>
 ListenStream=80
 
 [Install]
-WantedBy=socket.target]]>
+WantedBy=sockets.target]]>
 </programlisting>
                         </example>
                         <example label="proxy service unit">
@@ -153,9 +153,9 @@ server {
                         </example>
                         <example label="commands">
                                 <programlisting>
-<![CDATA[$ sudo systemctl --system daemon-reload
-$ sudo systemctl start proxy-to-nginx.socket
-$ sudo systemctl enable proxy-to-nginx.socket
+<![CDATA[# systemctl --system daemon-reload
+# systemctl start proxy-to-nginx.socket
+# systemctl enable proxy-to-nginx.socket
 $ curl http://localhost:80/]]>
 </programlisting>
                         </example>
@@ -177,7 +177,7 @@ $ curl http://localhost:80/]]>
 ListenStream=80
 
 [Install]
-WantedBy=socket.target]]>
+WantedBy=sockets.target]]>
 </programlisting>
                         </example>
                         <example label="combined proxy and nginx service unit">
@@ -221,9 +221,9 @@ server {
                         </example>
                         <example label="commands">
                                 <programlisting>
-<![CDATA[$ sudo systemctl --system daemon-reload
-$ sudo systemctl start proxy-with-nginx.socket
-$ sudo systemctl enable proxy-with-nginx.socket
+<![CDATA[# systemctl --system daemon-reload
+# systemctl start proxy-with-nginx.socket
+# systemctl enable proxy-with-nginx.socket
 $ curl http://localhost:80/]]>
 </programlisting>
                         </example>