Browse code

Use 'default.target' in systemd unit file example

Previously, 'local.target' was used which is not going to work
out-of-the-box for lots of users.
The 'default.target' is the default unit systemd starts at bootup and
hence what most users would be expected to use.

Signed-off-by: Tadej Janež <tadej.j@nez.si>
(cherry picked from commit 0a8c46d5e5f9a8c66e6ab6ac5ce7f50143b9a8df)

Tadej Janež authored on 2016/06/21 23:45:29
Showing 1 changed files
... ...
@@ -74,7 +74,7 @@ a new service that will be started after the docker daemon service has started.
74 74
     ExecStop=/usr/bin/docker stop -t 2 redis_server
75 75
 
76 76
     [Install]
77
-    WantedBy=local.target
77
+    WantedBy=default.target
78 78
 
79 79
 If you need to pass options to the redis container (such as `--env`),
80 80
 then you'll need to use `docker run` rather than `docker start`. This will