Reset colour
This commit is contained in:
parent
dbe6362fc7
commit
119251c799
|
@ -16,7 +16,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
log.Println("\033[32mStarting Server")
|
log.Println("\033[32mStarting Server\033[0m")
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigs, syscall.SIGTERM)
|
signal.Notify(sigs, syscall.SIGTERM)
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ func main() {
|
||||||
|
|
||||||
|
|
||||||
if _, err := os.Stat("/server/"+jar); os.IsNotExist(err) {
|
if _, err := os.Stat("/server/"+jar); os.IsNotExist(err) {
|
||||||
log.Println("\033[31mJar \"" + jar + "\" not found")
|
log.Println("\033[31mJar \"" + jar + "\" not found\033[0m")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ func main() {
|
||||||
go func() {
|
go func() {
|
||||||
sig := <-sigs
|
sig := <-sigs
|
||||||
if sig == syscall.SIGTERM {
|
if sig == syscall.SIGTERM {
|
||||||
fmt.Println("\033[31mStopping server")
|
fmt.Println("\033[31mStopping server\033[0m")
|
||||||
tty.WriteString(stop + "\n\r")
|
tty.WriteString(stop + "\n\r")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
@ -95,7 +95,7 @@ func main() {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
cmd.Wait()
|
cmd.Wait()
|
||||||
tty.Write([]byte("\033[31mServer Stopped"))
|
tty.Write([]byte("\033[31mServer Stopped\033[0m"))
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue