Initial commit
This commit is contained in:
1 parent
7164b61dd0
commit
bc851eaeb7
8 files changed
+27
-8
No files matched your search
+2
-2
@@ -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