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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user