From: Nishi Date: Sat, 7 Sep 2024 13:07:50 +0000 (+0000) Subject: disable resurrecting, no matter if it stopped or not X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=756dd56887234fee7a4e472c51b9a27f4fa2c687;p=mokou.git disable resurrecting, no matter if it stopped or not git-svn-id: file:///raid/svn-personal/mokou/trunk@14 35d6bad2-6c5c-c749-ada2-a2c82cb3bd79 --- diff --git a/Mokou/service.c b/Mokou/service.c index a9c5b67..282a8f0 100644 --- a/Mokou/service.c +++ b/Mokou/service.c @@ -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; } }