From a5e7b729db952752c1e6d838f84e02e7c782eafb Mon Sep 17 00:00:00 2001 From: Carlo Strub Date: Tue, 14 Mar 2017 22:07:34 +0000 Subject: [PATCH] add start logo --- main.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ff41941..c531206 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "net/http" "os" @@ -78,7 +79,16 @@ func main() { log.Fatal("sisyphus running or " + *pidfile + " file exists.") } - log.Print("App runs..........") + fmt.Print(` + + ███████╗██╗███████╗██╗ ██╗██████╗ ██╗ ██╗██╗ ██╗███████╗ + ██╔════╝██║██╔════╝╚██╗ ██╔╝██╔══██╗██║ ██║██║ ██║██╔════╝ + ███████╗██║███████╗ ╚████╔╝ ██████╔╝███████║██║ ██║███████╗ + ╚════██║██║╚════██║ ╚██╔╝ ██╔═══╝ ██╔══██║██║ ██║╚════██║ + ███████║██║███████║ ██║ ██║ ██║ ██║╚██████╔╝███████║ + ╚══════╝╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ + + `) // Make arrangement to remove PID file upon receiving the SIGTERM from kill command ch := make(chan os.Signal, 1) signal.Notify(ch, os.Interrupt, os.Kill, syscall.SIGTERM)