summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 02:37:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 02:37:36 +0300
commit3b22392e73e52ffb2b001288ce9ab54101a03529 (patch)
tree5e76870a31c8587158c2401e9a9e89a08abce2c9
parentcb10231838c918dbf380899a947599331818a4bc (diff)
downloadevol-hercules-3b22392e73e52ffb2b001288ce9ab54101a03529.tar.gz
evol-hercules-3b22392e73e52ffb2b001288ce9ab54101a03529.tar.bz2
evol-hercules-3b22392e73e52ffb2b001288ce9ab54101a03529.tar.xz
evol-hercules-3b22392e73e52ffb2b001288ce9ab54101a03529.zip
Add support for exit status code for pull and restart.
-rw-r--r--src/echar/char.c1
-rw-r--r--src/elogin/parse.c1
-rw-r--r--src/emap/atcommand.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/echar/char.c b/src/echar/char.c
index 26e6c61..6223ac4 100644
--- a/src/echar/char.c
+++ b/src/echar/char.c
@@ -329,6 +329,7 @@ void echar_parse_map_serverexit(int mapFd)
{
case 100: // all exit
case 101: // all restart
+ case 104: // git pull and all restart
case 102: // restart char and map server
echat_send_login_serverexit(code);
HSleep(1);
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 78b59c2..c2d1d10 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -222,6 +222,7 @@ void elogin_parse_serverexit(int fd)
{
case 100: // all exit
case 101: // all restart
+ case 104: // git pull and all restart
core->shutdown_callback();
break;
case 102: // restart char and map server
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index 1928620..54370af 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.c
@@ -146,6 +146,7 @@ ACMD1(mapExit)
// 101 - restart all servers
// 102 - restart char and map servers
// 103 - restart map server
+// 104 - git pull and restart all servers
ACMD1(serverExit)
{
int code = 0;