chore(*): split out unit processing from config.Apply

This commit is contained in:
Jonathan Boulle
2014-06-05 17:40:53 -07:00
committed by Michael Marineau
parent a55e2cd49b
commit be51f4eba0
7 changed files with 278 additions and 123 deletions

View File

@@ -60,7 +60,7 @@ func probe8012q() error {
}
func restartNetworkd() error {
_, err := RunUnitCommand("restart", "systemd-networkd.service")
_, err := NewUnitManager("").RunUnitCommand("restart", "systemd-networkd.service")
return err
}