Skip to content

Commit

Permalink
Add SIGINT as shutdown signal
Browse files Browse the repository at this point in the history
  • Loading branch information
grongor authored and fujita committed Nov 24, 2021
1 parent 8d79160 commit 7014234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/gobgpd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (

func main() {
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, syscall.SIGTERM)
signal.Notify(sigCh, syscall.SIGTERM, syscall.SIGINT)

var opts struct {
ConfigFile string `short:"f" long:"config-file" description:"specifying a config file"`
Expand Down
2 changes: 1 addition & 1 deletion test/lib/gobgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def start_gobgp(self, graceful_restart=False):
self._wait_for_boot()

def stop_gobgp(self):
self.local("pkill -INT gobgpd")
self.local("pkill -KILL gobgpd")

def _start_zebra(self):
if self.zapi_version == 2:
Expand Down

0 comments on commit 7014234

Please sign in to comment.