refactor(watchdog): remove tcp socket connection and add local unix sock connection
This commit is contained in:
@@ -6,3 +6,13 @@ import "os/exec"
|
||||
|
||||
func configureWatchdogCommand(cmd *exec.Cmd) {
|
||||
}
|
||||
|
||||
func KillWatchdogProcess() error {
|
||||
watchdogName, err := getWatchdogBinaryName()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cmd := exec.Command("pkill", "-f", watchdogName)
|
||||
return cmd.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user