mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
cmd/pomerium: exit 0 when intentionally terminated (#1958)
This commit is contained in:
parent
c42b364e07
commit
0f0a50be40
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
@ -16,9 +17,10 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if err := run(context.Background()); err != nil {
|
if err := run(context.Background()); !errors.Is(err, context.Canceled) {
|
||||||
log.Fatal().Err(err).Msg("cmd/pomerium")
|
log.Fatal().Err(err).Msg("cmd/pomerium")
|
||||||
}
|
}
|
||||||
|
log.Info().Msg("cmd/pomerium: exiting")
|
||||||
}
|
}
|
||||||
|
|
||||||
func run(ctx context.Context) error {
|
func run(ctx context.Context) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue