service: signals add syscall.SIGTERM

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2023-04-19 14:25:44 +02:00
parent 3af87d65d6
commit 9baceef381
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ func (s *service) Close() error {
func (s *service) notify() <-chan os.Signal {
sigs := make(chan os.Signal, 2)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGQUIT)
signal.Notify(sigs, os.Interrupt, syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT)
return sigs
}