Handle SIGTERM as well. Why not.

This commit is contained in:
NI
2019-08-18 10:26:54 +08:00
parent 6fe036ac5d
commit d074eb986f

View File

@@ -126,6 +126,8 @@ func (a Application) run(
case syscall.SIGHUP: case syscall.SIGHUP:
return true, nil return true, nil
case syscall.SIGTERM:
fallthrough
case os.Kill: case os.Kill:
fallthrough fallthrough
case os.Interrupt: case os.Interrupt: