]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: supervisord: renamed gc subprocess to cache-gc
authorVasek Sraier <git@vakabus.cz>
Wed, 12 Oct 2022 10:18:51 +0000 (12:18 +0200)
committerVasek Sraier <git@vakabus.cz>
Wed, 12 Oct 2022 10:18:51 +0000 (12:18 +0200)
manager/knot_resolver_manager/kresd_controller/supervisord/config_file.py
manager/knot_resolver_manager/kresd_controller/supervisord/supervisord.conf.j2

index bf21a2a3803cad76d026ec66c60710e9ddfd1270..a19fc94303e9c9247bcfaf41f47b4d3902f24075 100644 (file)
@@ -29,7 +29,8 @@ class SupervisordKresID(KresID):
 
     @staticmethod
     def from_string(val: str) -> "SupervisordKresID":
-        if val == "gc:gc":
+        if val == "cache-gc" or val == "cache-gc:cache-gc":
+            # the double name is checked because thats how we read it from supervisord
             return SupervisordKresID.new(SubprocessType.GC, 0)
         else:
             val = val.replace("kresd:kresd", "")
@@ -37,7 +38,7 @@ class SupervisordKresID(KresID):
 
     def __str__(self) -> str:
         if self.subprocess_type is SubprocessType.GC:
-            return "gc"
+            return "cache-gc"
         elif self.subprocess_type is SubprocessType.KRESD:
             return f"kresd:kresd{self._id}"
         else:
index 91fd8c7ebf2729013a52bf2b17cf2d4f5a9068e2..75b4f6b38f004e25532844f0fcff23c1b0c52d60 100644 (file)
@@ -66,7 +66,7 @@ environment={{ kresd.environment }}
 stdout_logfile=NONE
 stderr_logfile=NONE
 
-[program:gc]
+[program:cache-gc]
 redirect_stderr=false
 directory={{ gc.workdir }}
 command={{ gc.command }}