jpillora / overseer

Monitorable, gracefully restarting, self-upgrading binaries in Go (golang)
MIT License
2.32k stars 209 forks source link

Question: about the example, why app#3 never exiting? #36

Closed kokizzu closed 4 years ago

kokizzu commented 4 years ago
BUILT APP (1)
RUNNING APP
app#1 (1357a5d6a252170f2cf9e60b6edce84e28ebe3bf) listening...
app#1 (1357a5d6a252170f2cf9e60b6edce84e28ebe3bf) says hello
app#1 (1357a5d6a252170f2cf9e60b6edce84e28ebe3bf) says hello
BUILT APP (2)
app#2 (5b2873c193587d494c5e11052856cd587924ce1a) listening...
app#2 (5b2873c193587d494c5e11052856cd587924ce1a) says hello
app#2 (5b2873c193587d494c5e11052856cd587924ce1a) says hello
app#1 (1357a5d6a252170f2cf9e60b6edce84e28ebe3bf) says hello
app#1 (1357a5d6a252170f2cf9e60b6edce84e28ebe3bf) exiting...
BUILT APP (3)
app#3 (364734c72d8885a7f695fbae8ef154b2e2afa2c5) listening...
app#3 (364734c72d8885a7f695fbae8ef154b2e2afa2c5) says hello
app#3 (364734c72d8885a7f695fbae8ef154b2e2afa2c5) says hello
app#2 (5b2873c193587d494c5e11052856cd587924ce1a) says hello
app#2 (5b2873c193587d494c5e11052856cd587924ce1a) exiting...
app#3 (364734c72d8885a7f695fbae8ef154b2e2afa2c5) says hello
jpillora commented 4 years ago

app#3 doesnt exit because its the active server, it would only exit for a upgrade