From 829247b4c0173b250d0fb6c38b646432c5625895 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 4 Jul 2019 03:02:27 -0600 Subject: [PATCH] output message about logs --- serviceman.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/serviceman.go b/serviceman.go index 0718eea..cedd451 100644 --- a/serviceman.go +++ b/serviceman.go @@ -133,6 +133,8 @@ func add() { fmt.Fprintf(os.Stderr, "Use 'sudo' to add service as a privileged system service.\n") fmt.Fprintf(os.Stderr, "Use '--user' to add service as an user service.\n") } + + fmt.Printf("Once started, logs will be found at:\n\t%s\n", conf.Logdir) } func run() { @@ -180,7 +182,7 @@ func run() { } s.Normalize(false) - //fmt.Fprintf(os.Stdout, "Logdir: %s\n", s.Logdir) + fmt.Printf("All output will be directed to the logs at:\n\t%s\n", s.Logdir) err = os.MkdirAll(s.Logdir, 0755) if nil != err { fmt.Fprintf(os.Stderr, "%s\n", err)