Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ec4bfbc8fc | ||
|
de35d27bfc | ||
|
f0dea2475d |
@@ -38,7 +38,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version = "0.10.8"
|
version = "0.10.9"
|
||||||
datasourceInterval = 100 * time.Millisecond
|
datasourceInterval = 100 * time.Millisecond
|
||||||
datasourceMaxInterval = 30 * time.Second
|
datasourceMaxInterval = 30 * time.Second
|
||||||
datasourceTimeout = 5 * time.Minute
|
datasourceTimeout = 5 * time.Minute
|
||||||
|
@@ -363,7 +363,12 @@ func processUnits(units []system.Unit, root string, um system.UnitManager) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
if restartNetworkd {
|
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 {
|
for _, action := range actions {
|
||||||
|
Reference in New Issue
Block a user