etcdmain: SdNotify when gateway, grpc-proxy are ready

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee
2017-03-09 09:11:43 -08:00
parent ad1d48b73d
commit 01dd60c0f7
4 changed files with 29 additions and 16 deletions

View File

@ -165,6 +165,9 @@ func startGRPCProxy(cmd *cobra.Command, args []string) {
go func() { errc <- m.Serve() }()
// grpc-proxy is initialized, ready to serve
notifySystemd()
fmt.Fprintln(os.Stderr, <-errc)
os.Exit(1)
}