Merge pull request #93 from marineam/reload

Revert "fix(units): Drop automatic daemon-reload"
This commit is contained in:
Michael Marineau 2014-05-05 14:02:16 -07:00
commit 6a9aa60a8d

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)