mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03: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:
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>
|
||||
|
Loading…
Reference in New Issue
Block a user