From 70c37ec77b98d4607c0b03509dcb20648a8565b1 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Fri, 15 Jul 2016 14:17:17 +0200 Subject: [PATCH] Fix systemd service unit for etcd See https://github.com/coreos/etcd/issues/4308 Signed-off-by: Bogdan Dobrelya --- roles/etcd/templates/etcd-host.service.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/etcd/templates/etcd-host.service.j2 b/roles/etcd/templates/etcd-host.service.j2 index 19cc0386e..ff39477ac 100644 --- a/roles/etcd/templates/etcd-host.service.j2 +++ b/roles/etcd/templates/etcd-host.service.j2 @@ -1,8 +1,9 @@ [Unit] Description=etcd - +After=network.target [Service] +Type=notify User=etcd EnvironmentFile=/etc/etcd.env {% if inventory_hostname in groups['etcd'] %} @@ -10,6 +11,7 @@ ExecStart={{ bin_dir }}/etcd {% else %} ExecStart={{ bin_dir }}/etcd -proxy on {% endif %} +NotifyAccess=all Restart=always RestartSec=10s LimitNOFILE=40000