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)