From fd219b1a1336c08dbb7e1608bb65a99c773f5904 Mon Sep 17 00:00:00 2001 From: w1ndyb0y Date: Wed, 23 Dec 2020 11:13:14 +0800 Subject: [PATCH] running status --- cmd/start.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index 5c610e6..d04f99c 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -39,8 +39,6 @@ to quickly create a Cobra application.`, Run: start, } -var run bool - func init() { rootCmd.AddCommand(startCmd) @@ -75,7 +73,7 @@ func start(cmd *cobra.Command, args []string) { sig := <-sigs fmt.Println() fmt.Println(sig) - run = false + utils.ServerRunning = false done <- true }()