Skip to content

Commit

Permalink
Minor fixup for etcd unit files
Browse files Browse the repository at this point in the history
  • Loading branch information
redbaron committed Apr 11, 2017
1 parent 51f50ad commit 9b5053d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/controlplane/config/templates/cloud-config-etcd
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ coreos:
Description=etcd health check

[Service]
Type=simple
Type=oneshot
EnvironmentFile=-/etc/etcd-environment
EnvironmentFile=-/var/run/coreos/etcdadm-environment
Restart=no
ExecStartPre=/usr/bin/systemctl is-active {{.Etcd.SystemdUnitName}}
ExecStart=/opt/bin/etcdadm check
TimeoutStartSec=120
Expand Down Expand Up @@ -115,10 +114,9 @@ coreos:
Description=etcd snapshot

[Service]
Type=simple
Type=oneshot
EnvironmentFile=-/etc/etcd-environment
EnvironmentFile=-/var/run/coreos/etcdadm-environment
Restart=no
ExecStartPre=/usr/bin/systemctl is-active {{.Etcd.SystemdUnitName}}
ExecStart=/opt/bin/etcdadm save
TimeoutStartSec=300
Expand Down Expand Up @@ -251,13 +249,12 @@ coreos:
command: start
content: |
[Unit]
Wants={{.Etcd.SystemdUnitName}}
Requires={{.Etcd.SystemdUnitName}}
After={{.Etcd.SystemdUnitName}}

[Service]
Type=oneshot
EnvironmentFile={{.EtcdNodeEnvFileName}}
ExecStartPre=/usr/bin/systemctl is-active {{.Etcd.SystemdUnitName}}
ExecStart=/opt/bin/cfn-signal
{{end}}

Expand Down

0 comments on commit 9b5053d

Please sign in to comment.