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 }()