mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
man: avoid the use of sudo in examples
sudo is not the first-class tool on all distros. Just require any superuser shell.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
19aadacf92
commit
202e6abb3d
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user