add start logo

master
Carlo Strub 7 years ago
parent c5dc21e58e
commit a5e7b729db

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"log" "log"
"net/http" "net/http"
"os" "os"
@ -78,7 +79,16 @@ func main() {
log.Fatal("sisyphus running or " + *pidfile + " file exists.") 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 // Make arrangement to remove PID file upon receiving the SIGTERM from kill command
ch := make(chan os.Signal, 1) ch := make(chan os.Signal, 1)
signal.Notify(ch, os.Interrupt, os.Kill, syscall.SIGTERM) signal.Notify(ch, os.Interrupt, os.Kill, syscall.SIGTERM)

Loading…
Cancel
Save