Merge pull request 'added finit init system support' (#8) from develop into main
Build / Build (push) Successful in 12s

Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/dns_service/pulls/8
This commit was merged in pull request #8.
This commit is contained in:
wt
2025-08-16 22:49:18 +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"))
}