From 3e4b7671d1c32f6450ee29d54e2015cf4b68637f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 26 Mar 2018 20:46:51 +0200 Subject: [PATCH] Patch service_upstart --- .../github.com/kardianos/service/service_upstart_linux.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vendor/github.com/kardianos/service/service_upstart_linux.go b/vendor/github.com/kardianos/service/service_upstart_linux.go index 4ec01ab5..fc4d2399 100644 --- a/vendor/github.com/kardianos/service/service_upstart_linux.go +++ b/vendor/github.com/kardianos/service/service_upstart_linux.go @@ -21,13 +21,6 @@ func isUpstart() bool { if _, err := os.Stat("/sbin/upstart-udev-bridge"); err == nil { return true } - if _, err := os.Stat("/sbin/init"); err == nil { - if out, err := exec.Command("/sbin/init", "--version").Output(); err == nil { - if strings.Contains(string(out), "init (upstart") { - return true - } - } - } return false }