]> Git repositories of Nishi - mokou.git/commitdiff
disable resurrecting, no matter if it stopped or not
authorNishi <nishi@nishi.boats>
Sat, 7 Sep 2024 13:07:50 +0000 (13:07 +0000)
committerNishi <nishi@nishi.boats>
Sat, 7 Sep 2024 13:07:50 +0000 (13:07 +0000)
git-svn-id: file:///raid/svn-personal/mokou/trunk@14 35d6bad2-6c5c-c749-ada2-a2c82cb3bd79

Mokou/service.c

index a9c5b674a96aa315bed995e0bd4e2e0ef38c93bb..282a8f0c02a05673b32e10fbf5f94f6060b1ddba 100644 (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;
                }
        }