mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-07 16:25:10 +08:00
fix
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
anylink-deploy
|
anylink-deploy
|
||||||
anylink-deploy.tar.gz
|
anylink-deploy.tar.gz
|
||||||
|
|
||||||
|
dist
|
@@ -28,6 +28,7 @@ func main() {
|
|||||||
|
|
||||||
base.Start()
|
base.Start()
|
||||||
handler.Start()
|
handler.Start()
|
||||||
|
|
||||||
signalWatch()
|
signalWatch()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +36,7 @@ func signalWatch() {
|
|||||||
base.Info("Server pid: ", os.Getpid())
|
base.Info("Server pid: ", os.Getpid())
|
||||||
|
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGALRM)
|
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGALRM, syscall.SIGUSR2)
|
||||||
for {
|
for {
|
||||||
sig := <-sigs
|
sig := <-sigs
|
||||||
base.Info("Get signal:", sig)
|
base.Info("Get signal:", sig)
|
||||||
|
Reference in New Issue
Block a user