diff --git a/dutiesnet.go b/dutiesnet.go index fe7f365..aa42850 100644 --- a/dutiesnet.go +++ b/dutiesnet.go @@ -3,6 +3,7 @@ package main import ( "log" "net" + "os" "os/exec" "strings" "sync/atomic" @@ -125,8 +126,7 @@ func (duties *DutiesNet) checkError2() bool { func (duties *DutiesNet) checkError3() bool { if duties.IsPPPNExist("ppp2") { log.Println("IsPPP2Exist not") - _, err := exec.Command("pkill", "pppoe_control").Output() - ErrorLog(err) + os.Exit(2) return true } return false // 检测错误才返回true 否则 false