Skip to content
Permalink
Browse files

clean up the help menu for immortalctl

  • Loading branch information...
nbari committed Mar 8, 2019
1 parent 28462ff commit 009c0cc69d8437a94452ec104a05b78a835d66ec
Showing with 3 additions and 3 deletions.
  1. +1 −1 cmd/immortal/main.go
  2. +2 −2 cmd/immortalctl/main.go
@@ -31,7 +31,7 @@ func main() {
os.Exit(1)
}

// if -cc
// if -cc (check config)
if (fs.Lookup("cc")).Value.(flag.Getter).Get().(bool) && cfg == nil {
os.Exit(0)
}
@@ -45,10 +45,10 @@ func main() {
}

flag.Usage = func() {
fmt.Fprintf(os.Stderr, "usage: %s [option] [-12achikinouqstvw] service\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s %s\n",
fmt.Fprintf(os.Stderr, "usage: %s [-v] [option] [signals -12achik,in,ou,qstw] service\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s %s\n",
os.Args[0],
" Options:",
" exit Exits the supervisor.",
" exit Exits only the supervisor, not the service.",
" halt Stop the service by sending a TERM signal, and exits supervisor - restart.",
" once If the service is not running, start it. Do not restart it if it stops.",
" start Start the service.",

0 comments on commit 009c0cc

Please sign in to comment.
You can’t perform that action at this time.