Merge pull request 'added finit init system support' (#8) from develop into main
Build / Build (push) Successful in 12s
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:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user