private void ReloadShoreWall() { ProcessResult processResult = _processTool.Execute("/sbin/shorewall", "refresh"); if (processResult.ExitCode != 0) { throw new Exception("Couldn't reload ShoreWall"); } }
public void Apply(DnsMasqConfiguration configuration) { configuration.Write("/etc/dnsmasq.d"); var processResult = _processTool.Execute("/usr/sbin/service", "dnsmasq restart"); if (processResult.ExitCode != 0) { throw new Exception("Couldn't restart dnsmasq"); } }