Browse code

systemctl show, no need to sudo

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>

Thomas Sjögren authored on 2016/03/28 20:06:12
Showing 1 changed files
... ...
@@ -56,14 +56,14 @@ directory including the following:
56 56
 
57 57
 To check if the `docker.service` uses an `EnvironmentFile`:
58 58
 
59
-    $ sudo systemctl show docker | grep EnvironmentFile
59
+    $ systemctl show docker | grep EnvironmentFile
60 60
     EnvironmentFile=-/etc/sysconfig/docker (ignore_errors=yes)
61 61
 
62 62
 Alternatively, find out where the service file is located:
63 63
 
64
-    $ sudo systemctl status docker | grep Loaded
65
-       Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
66
-    $ sudo grep EnvironmentFile /usr/lib/systemd/system/docker.service
64
+    $ systemctl show --property=FragmentPath docker
65
+    FragmentPath=/usr/lib/systemd/system/docker.service
66
+    $ grep EnvironmentFile /usr/lib/systemd/system/docker.service
67 67
     EnvironmentFile=-/etc/sysconfig/docker
68 68
 
69 69
 You can customize the Docker daemon options using override files as explained in the
... ...
@@ -143,7 +143,7 @@ Flush changes:
143 143
 
144 144
 Verify that the configuration has been loaded:
145 145
 
146
-    $ sudo systemctl show docker --property Environment
146
+    $ systemctl show --property=Environment docker
147 147
     Environment=HTTP_PROXY=http://proxy.example.com:80/
148 148
 
149 149
 Restart Docker: