fix(systemd): Fail if daemon-reload returns error
This commit is contained in:
parent
0203d4a9f3
commit
477ae29135
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user