mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
man: document socket requirement for systemd-socket-proxyd (#6535)
Without this requirement, if proxy-to-nginx.socket was down, and the sysadmin
were to do:
systemctl start proxy-to-nginx.service
then the service would come up without a configured socket, which doesn't make
sense. Normally this isn't how we expect a socket-activated service to start,
but it's possible for an admin to do this (if the .socket were already running,
the systemd-socket-proxyd process will start effectively idle). But the
.service shouldn't end up in a broken state if the .socket isn't already
listening.
Adding the explicit Requires: should ensure that an admin with this
configuration state can't accidentally break their system.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
8f968c7321
commit
d7cefe8b2b
@@ -118,6 +118,8 @@ WantedBy=sockets.target]]></programlisting>
|
||||
<programlisting><![CDATA[[Unit]
|
||||
Requires=nginx.service
|
||||
After=nginx.service
|
||||
Requires=proxy-to-nginx.socket
|
||||
After=proxy-to-nginx.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/lib/systemd/systemd-socket-proxyd /tmp/nginx.sock
|
||||
@@ -159,6 +161,8 @@ WantedBy=sockets.target]]></programlisting>
|
||||
<programlisting><![CDATA[[Unit]
|
||||
Requires=nginx.service
|
||||
After=nginx.service
|
||||
Requires=proxy-to-nginx.service
|
||||
After=proxy-to-nginx.service
|
||||
JoinsNamespaceOf=nginx.service
|
||||
|
||||
[Service]
|
||||
|
||||
Reference in New Issue
Block a user