Преглед изворни кода

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.[...]
```
Alexander Ried пре 9 година
родитељ
комит
17377f5642
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      contrib/systemd/etcd.service

+ 1 - 0
contrib/systemd/etcd.service

@@ -1,6 +1,7 @@
 [Unit]
 [Unit]
 Description=etcd key-value store
 Description=etcd key-value store
 Documentation=https://github.com/coreos/etcd
 Documentation=https://github.com/coreos/etcd
+After=network.target
 
 
 [Service]
 [Service]
 User=etcd
 User=etcd