]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
python: constants: added API_SOCKET_NAME
authorAleš Mrázek <ales.mrazek@nic.cz>
Wed, 19 Feb 2025 12:13:49 +0000 (13:13 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 26 Feb 2025 08:11:11 +0000 (09:11 +0100)
python/knot_resolver/constants.py
python/knot_resolver/constants.py.in

index e562d62539ce0cc6654d849e393ea9b6f66bf53e..560e7697c96e7269969573ca0dbeb172ef2fe038 100644 (file)
@@ -5,15 +5,18 @@ VERSION = "6.0.10"
 USER = "knot-resolver"
 GROUP = "knot-resolver"
 
-# dirs paths
+# default files names
+API_SOCK_NAME = "kres-api.sock"
+
+# default dirs paths
 RUN_DIR = Path("/run/knot-resolver")
 ETC_DIR = Path("/etc/knot-resolver")
 SBIN_DIR = Path("/usr/sbin")
 CACHE_DIR = Path("/var/cache/knot-resolver")
 
-# files paths
+# default files paths
 CONFIG_FILE = ETC_DIR / "config.yaml"
-API_SOCK_FILE = RUN_DIR / "kres-api.sock"
+API_SOCK_FILE = RUN_DIR / API_SOCK_NAME
 
 # executables paths
 KRESD_EXECUTABLE = SBIN_DIR / "kresd"
index 35c25ac645a08c9863604661cfc85ceef713d3aa..8c2974a588b1bb62645acf679d3ad705565c99ab 100644 (file)
@@ -5,15 +5,18 @@ VERSION = "@version@"
 USER = "@user@"
 GROUP = "@group@"
 
-# dirs paths
+# default files names
+API_SOCK_NAME = "kres-api.sock"
+
+# default dirs paths
 RUN_DIR = Path("@run_dir@")
 ETC_DIR = Path("@etc_dir@")
 SBIN_DIR = Path("@sbin_dir@")
 CACHE_DIR = Path("@cache_dir@")
 
-# files paths
+# default files paths
 CONFIG_FILE = ETC_DIR / "config.yaml"
-API_SOCK_FILE = RUN_DIR / "kres-api.sock"
+API_SOCK_FILE = RUN_DIR / API_SOCK_NAME
 
 # executables paths
 KRESD_EXECUTABLE = SBIN_DIR / "kresd"