From 3b0d60b6117159e21872cdfb71372eb28757dbb6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 24 Apr 2020 10:56:30 +0200 Subject: [PATCH] Update restart exit code in pmctl --- pmctl/run.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pmctl/run.go b/pmctl/run.go index 1f9ffcfc..53133697 100644 --- a/pmctl/run.go +++ b/pmctl/run.go @@ -17,6 +17,10 @@ import ( "github.com/tevino/abool" ) +const ( + restartCode = 23 +) + var ( runningInConsole bool onWindows = runtime.GOOS == "windows" @@ -375,7 +379,7 @@ func execute(opts *Options, args []string) (cont bool, err error) { case 1: // error exit return true, fmt.Errorf("error during execution: %s", err) - case 2357427: // Leet Speak for "restart" + case restartCode: // restart request log.Printf("restarting %s\n", opts.Identifier) return true, nil