dns/coredns: Remove the "-cpu" parameter

Coredns won't start with "-cpu" as startup parameter in coredns.in because it has been obsoleted.

PR:		243737
Submitted by:	freebsd@rainbowfab.org
This commit is contained in:
Yuri Victorovich 2020-01-31 02:49:46 +00:00
parent 2f8aa47ad5
commit d13c29dd4b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=524666
2 changed files with 2 additions and 3 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= coredns
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= dns
MAINTAINER= yuri@FreeBSD.org

View file

@ -27,13 +27,12 @@ load_rc_config $name
: ${coredns_enable:="NO"}
: ${coredns_config:="%%PREFIX%%/etc/coredns/Corefile"}
: ${coredns_cpu_cap:="100"}
: ${coredns_listen_port:="53"}
pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
procname="%%PREFIX%%/bin/${name}"
coredns_args="-conf ${coredns_config} -cpu ${coredns_cpu_cap} -dns.port ${coredns_listen_port}"
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}"
coredns_precmd()