diff --git a/cloudinit/systemd.go b/cloudinit/systemd.go index c3f2335..eb8774e 100644 --- a/cloudinit/systemd.go +++ b/cloudinit/systemd.go @@ -115,7 +115,9 @@ func RestartUnitByName(name string) error { return err } - _, err = conn.RestartUnit(name, "replace") + output, err = conn.RestartUnit(name, "replace") + log.Printf("Restart completed with '%s'", output) + return err }