Initial commit
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
func main() {
|
||||
sigs := make(chan os.Signal, 1)
|
||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
||||
signal.Notify(sigs, syscall.SIGTERM)
|
||||
|
||||
var minram, maxram, args, stop string
|
||||
for _, e := range os.Environ() {
|
||||
@@ -57,7 +57,7 @@ func main() {
|
||||
|
||||
go func() {
|
||||
sig := <-sigs
|
||||
if sig == syscall.SIGTERM || sig == syscall.SIGINT {
|
||||
if sig == syscall.SIGTERM {
|
||||
fmt.Println("Stopping server")
|
||||
tty.WriteString(stop + "\n\r")
|
||||
}
|
||||
|
Reference in New Issue
Block a user