Skip to content
Snippets Groups Projects

Release

4 files
+ 58
35
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
0
@@ -14,6 +14,7 @@ import (
@@ -14,6 +14,7 @@ import (
"log"
"log"
"net"
"net"
"os"
"os"
 
"os/signal"
"strconv"
"strconv"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
@@ -107,6 +108,12 @@ var rootCmd = &cobra.Command{
@@ -107,6 +108,12 @@ var rootCmd = &cobra.Command{
if err != nil {
if err != nil {
jww.FATAL.Panicf("Failed to start server: %+v", err)
jww.FATAL.Panicf("Failed to start server: %+v", err)
}
}
 
 
// Wait for kill signal
 
sigChan := make(chan os.Signal)
 
signal.Notify(sigChan, os.Interrupt)
 
<-sigChan
 
jww.INFO.Print("Exiting...")
},
},
}
}
Loading