mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
saproxy: man page formatting and terminology fixes
This commit is contained in:
parent
40ca29a137
commit
c452c7cfce
@ -59,7 +59,7 @@
|
|||||||
<refsect1>
|
<refsect1>
|
||||||
<title>Description</title>
|
<title>Description</title>
|
||||||
<para>
|
<para>
|
||||||
<command>systemd-saproxy</command>provides a proxy
|
<command>systemd-saproxy</command> provides a proxy
|
||||||
to socket-activate services that do not yet support
|
to socket-activate services that do not yet support
|
||||||
native socket activation. On behalf of the daemon,
|
native socket activation. On behalf of the daemon,
|
||||||
the proxy inherits the socket from systemd, accepts
|
the proxy inherits the socket from systemd, accepts
|
||||||
@ -119,8 +119,8 @@
|
|||||||
<title>Direct-Use Example</title>
|
<title>Direct-Use Example</title>
|
||||||
<para>Use two services with a dependency
|
<para>Use two services with a dependency
|
||||||
and no namespace isolation.</para>
|
and no namespace isolation.</para>
|
||||||
<example label="bridge socket unit">
|
<example label="proxy socket unit">
|
||||||
<title>/etc/systemd/system/bridge-to-nginx.socket</title>
|
<title>/etc/systemd/system/proxy-to-nginx.socket</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[[Socket]
|
<![CDATA[[Socket]
|
||||||
ListenStream=80
|
ListenStream=80
|
||||||
@ -129,8 +129,8 @@ ListenStream=80
|
|||||||
WantedBy=socket.target]]>
|
WantedBy=socket.target]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<example label="bridge service unit">
|
<example label="proxy service unit">
|
||||||
<title>/etc/systemd/system/bridge-to-nginx.service</title>
|
<title>/etc/systemd/system/proxy-to-nginx.service</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[[Unit]
|
<![CDATA[[Unit]
|
||||||
After=nginx.service
|
After=nginx.service
|
||||||
@ -154,8 +154,8 @@ server {
|
|||||||
<example label="commands">
|
<example label="commands">
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[$ sudo systemctl --system daemon-reload
|
<![CDATA[$ sudo systemctl --system daemon-reload
|
||||||
$ sudo systemctl start bridge-to-nginx.socket
|
$ sudo systemctl start proxy-to-nginx.socket
|
||||||
$ sudo systemctl enable bridge-to-nginx.socket
|
$ sudo systemctl enable proxy-to-nginx.socket
|
||||||
$ curl http://localhost:80/]]>
|
$ curl http://localhost:80/]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
@ -163,15 +163,15 @@ $ curl http://localhost:80/]]>
|
|||||||
<refsect2>
|
<refsect2>
|
||||||
<title>Indirect-Use Example</title>
|
<title>Indirect-Use Example</title>
|
||||||
<para>Use a shell script to isolate the
|
<para>Use a shell script to isolate the
|
||||||
service and bridge into the same namespace.
|
service and proxy into the same namespace.
|
||||||
This is particularly useful for running
|
This is particularly useful for running
|
||||||
TCP-only daemons without the daemon
|
TCP-only daemons without the daemon
|
||||||
affecting ports on regular
|
affecting ports on regular
|
||||||
interfaces.</para>
|
interfaces.</para>
|
||||||
<example label="combined bridge and nginx socket unit">
|
<example label="combined proxy and nginx socket unit">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
/etc/systemd/system/bridge-with-nginx.socket</title>
|
/etc/systemd/system/proxy-with-nginx.socket</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[[Socket]
|
<![CDATA[[Socket]
|
||||||
ListenStream=80
|
ListenStream=80
|
||||||
@ -180,10 +180,10 @@ ListenStream=80
|
|||||||
WantedBy=socket.target]]>
|
WantedBy=socket.target]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<example label="combined bridge and nginx service unit">
|
<example label="combined proxy and nginx service unit">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
/etc/systemd/system/bridge-with-nginx.service</title>
|
/etc/systemd/system/proxy-with-nginx.service</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[[Unit]
|
<![CDATA[[Unit]
|
||||||
After=syslog.target remote-fs.target nss-lookup.target
|
After=syslog.target remote-fs.target nss-lookup.target
|
||||||
@ -222,8 +222,8 @@ server {
|
|||||||
<example label="commands">
|
<example label="commands">
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[$ sudo systemctl --system daemon-reload
|
<![CDATA[$ sudo systemctl --system daemon-reload
|
||||||
$ sudo systemctl start bridge-with-nginx.socket
|
$ sudo systemctl start proxy-with-nginx.socket
|
||||||
$ sudo systemctl enable bridge-with-nginx.socket
|
$ sudo systemctl enable proxy-with-nginx.socket
|
||||||
$ curl http://localhost:80/]]>
|
$ curl http://localhost:80/]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
Loading…
Reference in New Issue
Block a user