mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 06:07:36 +03:00
Apply kardianos/service PR #144
This commit is contained in:
parent
e3d5f3e6e5
commit
40f2dc6a7d
2 changed files with 4 additions and 3 deletions
3
vendor/github.com/kardianos/service/service_upstart_linux.go
generated
vendored
3
vendor/github.com/kardianos/service/service_upstart_linux.go
generated
vendored
|
@ -11,6 +11,7 @@ import (
|
|||
"os/signal"
|
||||
"regexp"
|
||||
"strings"
|
||||
"syscall"
|
||||
"text/template"
|
||||
"time"
|
||||
)
|
||||
|
@ -186,7 +187,7 @@ func (s *upstart) Run() (err error) {
|
|||
|
||||
s.Option.funcSingle(optionRunWait, func() {
|
||||
var sigChan = make(chan os.Signal, 3)
|
||||
signal.Notify(sigChan, os.Interrupt, os.Kill)
|
||||
signal.Notify(sigChan, syscall.SIGTERM, os.Interrupt)
|
||||
<-sigChan
|
||||
})()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue