[systemd-devel] [PATCH 2/2] man: avoid the use of sudo in examples

Jan Engelhardt jengelh at inai.de
Tue Oct 22 01:50:49 CEST 2013


sudo is not the first-class tool on all distros. Just require any
superuser shell.
---
 man/systemd-socket-proxyd.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/man/systemd-socket-proxyd.xml b/man/systemd-socket-proxyd.xml
index 9f2389a..d17c86e 100644
--- a/man/systemd-socket-proxyd.xml
+++ b/man/systemd-socket-proxyd.xml
@@ -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>
@@ -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>
-- 
1.8.2



More information about the systemd-devel mailing list