disable resurrecting, no matter if it stopped or not

git-svn-id: file:///raid/svn-personal/mokou/trunk@14 35d6bad2-6c5c-c749-ada2-a2c82cb3bd79
This commit is contained in:
Nishi 2024-09-07 13:07:50 +00:00
parent a4f1638405
commit 756dd56887

View File

@ -234,6 +234,8 @@ int mk_stop_service(const char* name){
mk_log(log);
free(log);
srv->stopped = true; /* No more resurrecting */
bool alive = false;
FILE* f = fopen(srv->pidfile, "r");
@ -343,7 +345,6 @@ int mk_stop_service(const char* name){
return 6;
}
srv->stopped = true;
return 0;
}
}