GODT-2039: bridge monitors bridge-gui via its PID.

This commit is contained in:
Xavier Michelon
2022-11-08 11:08:11 +01:00
committed by Romain LE JEUNE
parent f5148074fd
commit 3b9a3aaad2
7 changed files with 74 additions and 9 deletions

View File

@ -76,6 +76,7 @@ const (
flagRestart = "restart"
FlagLauncher = "launcher"
FlagNoWindow = "no-window"
FlagParentPID = "parent-pid"
)
type Base struct {
@ -324,6 +325,12 @@ func (b *Base) NewApp(mainLoop func(*Base, *cli.Context) error) *cli.App {
Usage: "The launcher to use to restart the application",
Hidden: true,
},
&cli.IntFlag{
Name: FlagParentPID,
Usage: "The PID of the process that started the application. Ignored if frontend is not gRPC",
Hidden: true,
Value: -1,
},
}
return app