From 17377f56428b64563c370240688030cb72f31185 Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Thu, 8 Sep 2016 23:11:01 +0200 Subject: [PATCH] example .service file: Order after network.target From (systemd NetworkTarget description)[https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/]: ``` [...]since the shutdown ordering of units in systemd is the reverse of the startup ordering, any unit that is order After=network.target can be sure that it is stopped before the network is shut down if the system is powered off. This allows services to cleanly terminate connections before going down, instead of abruptly losing connectivity for ongoing connections, leaving them in an undefined state.[...] ``` --- contrib/systemd/etcd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/etcd.service b/contrib/systemd/etcd.service index 8a128ba61..3550f3d77 100644 --- a/contrib/systemd/etcd.service +++ b/contrib/systemd/etcd.service @@ -1,6 +1,7 @@ [Unit] Description=etcd key-value store Documentation=https://github.com/coreos/etcd +After=network.target [Service] User=etcd