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 580460ff3f.
This commit is contained in:
Michael Marineau 2014-05-05 13:16:07 -07:00
parent 96e1cb5a7a
commit 7cacb2e127

View File

@ -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 { for unit, command := range commands {
log.Printf("Calling unit command '%s %s'", command, unit) log.Printf("Calling unit command '%s %s'", command, unit)
res, err := system.RunUnitCommand(command, unit) res, err := system.RunUnitCommand(command, unit)