summaryrefslogtreecommitdiff
path: root/man/systemd-socket-proxyd.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-18 18:50:06 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-18 18:50:06 +0200
commitedd1dcd091bf7df555f099d68033a4405b804070 (patch)
treee5f12cc43de1088909e9155ebbef213ad00cb9cb /man/systemd-socket-proxyd.xml
parent7aab22308e0a95a7ad6f73be5fca2ba5c797ab8d (diff)
downloadsystemd-edd1dcd091bf7df555f099d68033a4405b804070.tar.gz
man: don't place nginx socket in /tmp (#8757)
First of all, it's frickin' ugly and wrong, as IPC sockets should be placed in /run and definitely not under a guessable name under world-writable /tmp. Secondly, it can't even work as we set PrivateTmp=yes on the service. Hence, let's clean up the example, and simply use a socket in /run instead. Fixes: #8419
Diffstat (limited to 'man/systemd-socket-proxyd.xml')
-rw-r--r--man/systemd-socket-proxyd.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/man/systemd-socket-proxyd.xml b/man/systemd-socket-proxyd.xml
index ced509daab..68baccae30 100644
--- a/man/systemd-socket-proxyd.xml
+++ b/man/systemd-socket-proxyd.xml
@@ -111,7 +111,7 @@ Requires=proxy-to-nginx.socket
After=proxy-to-nginx.socket
[Service]
-ExecStart=/usr/lib/systemd/systemd-socket-proxyd /tmp/nginx.sock
+ExecStart=/usr/lib/systemd/systemd-socket-proxyd /run/nginx/socket
PrivateTmp=yes
PrivateNetwork=yes]]></programlisting>
</example>
@@ -120,7 +120,7 @@ PrivateNetwork=yes]]></programlisting>
<programlisting>
<![CDATA[[…]
server {
- listen unix:/tmp/nginx.sock;
+ listen unix:/run/nginx/socket;
[…]]]>
</programlisting>
</example>