added finit init system support #8

Merged
wt merged 1 commits from develop into main 2025-08-16 22:49:21 +07:00
+2
View File
@@ -15,6 +15,8 @@ func RestartDnsmasq() error {
cmd = exec.Command("rc-service", "dnsmasq", "restart")
case "systemd":
cmd = exec.Command("systemctl", "restart", "dnsmasq")
case "finit":
cmd = exec.Command("initctl", "restart", "dnsmasq")
default:
return fmt.Errorf("unsupported system initialization: %s", os.Getenv("SYSTEM_INITIALIZATION"))
}