]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
systemd: add KNOT_ prefix to ZONE_LOAD_TIMEOUT_SEC
authorDaniel Salzman <daniel.salzman@nic.cz>
Fri, 6 Aug 2021 13:18:17 +0000 (15:18 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 9 Aug 2021 12:02:30 +0000 (14:02 +0200)
distro/common/knot.service
src/knot/common/systemd.c

index 4f1f31eeab2cb83cfc35baa772e99d14ec8f8dde..2d4d8a0f4beb6b5636989899eea105c238916696 100644 (file)
@@ -16,7 +16,7 @@ ExecReload=/bin/kill -HUP $MAINPID
 Restart=on-abort
 LimitNOFILE=1048576
 TimeoutStopSec=300
-Environment="ZONE_LOAD_TIMEOUT_SEC=180"
+Environment="KNOT_ZONE_LOAD_TIMEOUT_SEC=180"
 
 [Install]
 WantedBy=multi-user.target
index 11c4de78fec34d8e931b93e89110cf9abab24aa5..c3ee68f362bc121d3877f118142091ff13e726e2 100644 (file)
@@ -29,7 +29,7 @@ static int zone_load_timeout_s;
 
 static int systemd_zone_load_timeout(void)
 {
-       const char *timeout = getenv("ZONE_LOAD_TIMEOUT_SEC");
+       const char *timeout = getenv("KNOT_ZONE_LOAD_TIMEOUT_SEC");
 
        int out;
        if (timeout != NULL && timeout[0] != '\0' &&