diff options
author | King John <jinking.this@gmail.com> | 2025-07-17 01:53:11 -0700 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-07-17 02:47:08 -0700 |
commit | 69c5ebd88d37d0432ab8fe4989b7c0547925a625 (patch) | |
tree | 909be9d004d6b0dec24a54292d3354a99efac17b | |
parent | science/{,py-}phonopy: update 2.38.0 → 2.41.2 (diff) |
dns/coredns: redirect stdout to /var/log/coredns.log file
PR: 287464
-rw-r--r-- | dns/coredns/Makefile | 1 | ||||
-rw-r--r-- | dns/coredns/files/coredns.in | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dns/coredns/Makefile b/dns/coredns/Makefile index 2e42a4c7c9cd..5cf6341bf856 100644 --- a/dns/coredns/Makefile +++ b/dns/coredns/Makefile @@ -1,6 +1,7 @@ PORTNAME= coredns DISTVERSIONPREFIX= v DISTVERSION= 1.12.2 +PORTREVISION= 1 CATEGORIES= dns MAINTAINER= yuri@FreeBSD.org diff --git a/dns/coredns/files/coredns.in b/dns/coredns/files/coredns.in index fb5af7605464..b0a422fc3b5b 100644 --- a/dns/coredns/files/coredns.in +++ b/dns/coredns/files/coredns.in @@ -30,10 +30,11 @@ load_rc_config $name : ${coredns_listen_port:="53"} pidfile="/var/run/${name}.pid" +logfile="/var/log/${name}.log" command="/usr/sbin/daemon" procname="%%PREFIX%%/bin/${name}" coredns_args="-conf ${coredns_config} -dns.port ${coredns_listen_port}" -command_args="-S -m 3 -s "info" -l "daemon" -p ${pidfile} /usr/bin/env ${procname} ${coredns_args}" +command_args="-o ${logfile} -m 3 -s "info" -l "daemon" -p ${pidfile} /usr/bin/env ${procname} ${coredns_args}" coredns_precmd() { |