Skip to content

Commit

Permalink
Pass signals
Browse files Browse the repository at this point in the history
  • Loading branch information
elcuervo committed Sep 7, 2023
1 parent 78192bb commit e04b1b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified bin/start-pgpool
Binary file not shown.
3 changes: 1 addition & 2 deletions src/start-pgpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ func main() {
var wg sync.WaitGroup
sigterm := make(chan os.Signal, 1)

signal.Ignore(syscall.SIGINT)
signal.Notify(sigterm, syscall.SIGTERM)
signal.Notify(sigterm, syscall.SIGINT, syscall.SIGTERM)

pgpool := run(true, "/app/.apt/usr/sbin/pgpool", "-n", "-f", "/app/vendor/pgpool/pgpool.conf", "-a", "/app/vendor/pgpool/pool_hba.conf")

Expand Down

0 comments on commit e04b1b6

Please sign in to comment.