mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
* log: remove warn * log: update debug * log: update info * remove level, log * remove contextLogger function
29 lines
616 B
Go
29 lines
616 B
Go
//go:build darwin
|
|
// +build darwin
|
|
|
|
package envoy
|
|
|
|
import (
|
|
"context"
|
|
"syscall"
|
|
|
|
"github.com/pomerium/pomerium/internal/log"
|
|
)
|
|
|
|
var sysProcAttr = &syscall.SysProcAttr{
|
|
Setpgid: true,
|
|
}
|
|
|
|
func (srv *Server) runProcessCollector(_ context.Context) {}
|
|
|
|
func (srv *Server) prepareRunEnvoyCommand(ctx context.Context, sharedArgs []string) (exePath string, args []string) {
|
|
if srv.cmd != nil && srv.cmd.Process != nil {
|
|
log.Ctx(ctx).Info().Msg("envoy: terminating previous envoy process")
|
|
_ = srv.cmd.Process.Kill()
|
|
}
|
|
|
|
args = make([]string, len(sharedArgs))
|
|
copy(args, sharedArgs)
|
|
|
|
return srv.envoyPath, args
|
|
}
|