fix(systemd): Fail if daemon-reload returns error

This commit is contained in:
Brian Waldon 2014-03-25 18:50:05 -07:00
parent 0203d4a9f3
commit 477ae29135

View File

@ -153,7 +153,9 @@ func Apply(cfg CloudConfig, env *Environment) error {
} }
} }
system.DaemonReload() 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)