From 7cacb2e127f219c9ea860c6d08b7a2f4c09c94a2 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Mon, 5 May 2014 13:16:07 -0700 Subject: [PATCH] Revert "fix(units): Drop automatic daemon-reload" daemon-reload should be fixed now and the latest CoreOS with locksmith is causing the etcd unit to get lazy-loaded before all the cloudinit processes have finished configuring etcd via dropin files. In short, the luck we were relying on to get by without daemon-reload has officially run out. Cross your fingers! This reverts commit 580460ff3f0dba4aa6ba655d54965cbfd184137a. --- initialize/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/initialize/config.go b/initialize/config.go index 71efefe..85de85a 100644 --- a/initialize/config.go +++ b/initialize/config.go @@ -161,6 +161,10 @@ func Apply(cfg CloudConfig, env *Environment) error { } } + if err := system.DaemonReload(); err != nil { + log.Fatalf("Failed systemd daemon-reload: %v", err) + } + for unit, command := range commands { log.Printf("Calling unit command '%s %s'", command, unit) res, err := system.RunUnitCommand(command, unit)