diff --git a/distro/common/knot.service b/distro/common/knot.service index 4f1f31eeab2cb83cfc35baa772e99d14ec8f8dde..2d4d8a0f4beb6b5636989899eea105c238916696 100644 --- a/distro/common/knot.service +++ b/distro/common/knot.service @@ -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 diff --git a/src/knot/common/systemd.c b/src/knot/common/systemd.c index 11c4de78fec34d8e931b93e89110cf9abab24aa5..c3ee68f362bc121d3877f118142091ff13e726e2 100644 --- a/src/knot/common/systemd.c +++ b/src/knot/common/systemd.c @@ -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' &&