app-admin/etcd-wrapper: Address etcd-member race.

In some cases etcd is able to start before systemd-resolved has
populated the /etc/resolv.conf file. This commit addresses this by
adding a dependency on netowrk-online.target.

This will ensure that systemd-resolved finishes it's work before
etcd-member.service starts.
This commit is contained in:
Duffie Cooley 2017-10-18 09:46:43 -07:00
parent d757194f05
commit 0dfd2ec65e
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
[Unit]
Description=etcd (System Application Container)
Documentation=https://github.com/coreos/etcd
Wants=network.target
Wants=network-online.target network.target
After=network-online.target
Conflicts=etcd.service
Conflicts=etcd2.service