Date: Sun, 15 Apr 2001 09:50:02 -0700 (PDT) From: Maxim Konovalov <maxim@macomnet.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/25049: named.restart does not use named flags from rc.conf Message-ID: <200104151650.f3FGo2K38257@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/25049; it has been noted by GNATS. From: Maxim Konovalov <maxim@macomnet.ru> To: <freebsd-gnats-submit@FreeBSD.org>, <richard@gohome.net> Cc: Subject: Re: misc/25049: named.restart does not use named flags from rc.conf Date: Sun, 15 Apr 2001 20:41:46 +0400 (MSD) Hello, IMHO it is still a bit incorrect. How about this one: --- rc.conf.orig Sun Apr 15 20:25:26 2001 +++ rc.conf Sun Apr 15 20:27:07 2001 @@ -114,6 +114,7 @@ named_program="named" # path to named, if you want a different one. named_flags="" # Flags for named #named_flags="-u bind -g bind" # Flags for named +named_socket="/var/run/ndc" # path to named control socket kerberos_server_enable="NO" # Run a kerberos master server (or NO). kadmind_server_enable="NO" # Run kadmind (or NO) -- do not run on --- named.reload.sh.orig Sun Apr 15 20:30:55 2001 +++ named.reload.sh Sun Apr 15 20:34:16 2001 @@ -4,4 +4,12 @@ # $FreeBSD: src/usr.sbin/named.reload/named.reload.sh,v 1.2 1999/08/28 01:17:23 peter Exp $ # -exec %DESTSBIN%/%INDOT%ndc reload +if [ -r /etc/defaults/rc.conf ]; then + . /etc/defaults/rc.conf + source_rc_confs +elif [ -r /etc/rc.conf ]; then + . /etc/rc.conf +fi + +if [ +exec %DESTSBIN%/%INDOT%ndc -c ${named_socket:-/var/run/ndc} reload --- named.restart.sh.orig Sun Apr 15 20:28:15 2001 +++ named.restart.sh Sun Apr 15 20:35:52 2001 @@ -10,4 +10,4 @@ elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi -exec %DESTSBIN%/%INDOT%ndc restart ${named_flags} +exec %DESTSBIN%/%INDOT%ndc -c ${named_socket:-/var/run/ndc} -n {named_program} restart ${named_flags} - -maxim -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104151650.f3FGo2K38257>