fix: fix the Signal.Notify

This commit is contained in:
luhaoling 2024-02-05 16:07:47 +08:00
parent b425702c01
commit 4f756c8b29

View File

@ -64,7 +64,7 @@ func StartTask() error {
crontab.Start()
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
signal.Notify(sigs, syscall.SIGUSR1)
<-sigs
// stop crontab, Wait for the running task to exit.