From f6635a45eccea31fd54922e3c1bf7e5e5a5df097 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Wed, 10 May 2017 12:40:35 -0700 Subject: [PATCH] service: add missing imports --- service_upstart_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service_upstart_linux.go b/service_upstart_linux.go index e4c4871..4695e8f 100644 --- a/service_upstart_linux.go +++ b/service_upstart_linux.go @@ -8,7 +8,9 @@ import ( "errors" "fmt" "os" + "os/exec" "os/signal" + "strings" "text/template" "time" ) @@ -19,7 +21,7 @@ func isUpstart() bool { } 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") { + if strings.Contains(string(out), "init (upstart") { return true } }