Compare commits

..

3 Commits

Author SHA1 Message Date
Alex Crawford
ec4bfbc8fc coreos-cloudinit: bump to 0.10.9 2014-12-02 17:31:49 -08:00
Alex Crawford
de35d27bfc Merge pull request #274 from crawford/networkd
initialize: restart networkd before other units
2014-12-02 17:30:47 -08:00
Alex Crawford
f0dea2475d initialize: restart networkd before other units 2014-12-02 17:21:31 -08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ import (
)
const (
version = "0.10.8"
version = "0.10.9"
datasourceInterval = 100 * time.Millisecond
datasourceMaxInterval = 30 * time.Second
datasourceTimeout = 5 * time.Minute

View File

@@ -363,7 +363,12 @@ func processUnits(units []system.Unit, root string, um system.UnitManager) error
}
if restartNetworkd {
actions = append(actions, action{"systemd-networkd.service", "restart"})
log.Printf("Restarting systemd-networkd")
res, err := um.RunUnitCommand("restart", "systemd-networkd.service")
if err != nil {
return err
}
log.Printf("Restarted systemd-networkd (%s)", res)
}
for _, action := range actions {