[SEBA-616] update main.go to loop forever empty select didnt work
Change-Id: I3d27009f6617e9914df7d5713bca1cd03392b5f8
diff --git a/VERSION b/VERSION
index 6e8bf73..c992723 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.0
+0.1.1-dev
diff --git a/main.go b/main.go
index 3cd7649..abfec3c 100644
--- a/main.go
+++ b/main.go
@@ -16,9 +16,17 @@
import (
"fmt"
+ "os"
+ "os/signal"
)
func main() {
fmt.Println("Starting Device-management Container")
- select { }
+ quit := make(chan os.Signal)
+ signal.Notify(quit, os.Interrupt)
+
+ select {
+ case sig := <-quit:
+ fmt.Println("Shutting down:", sig)
+ }
}