Re: bind-9 changeover committed.

看板DFBSD_submit作者時間21年前 (2004/06/01 10:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
:/etc/rc.d/named stop can't find the pid with chroot enabled; :how about this for a patch: : :RCS file: /home/dcvs/src/etc/rc.d/named,v :retrieving revision 1.4 :diff -u -r1.4 named :--- src/etc/rc.d/named 27 May 2004 18:15:40 -0000 1.4 :+++ src/etc/rc.d/named 30 May 2004 01:33:28 -0000 :@@ -38,6 +38,6 @@ : # The following variable requires that rc.conf be loaded first : # : required_dirs="$named_chrootdir" # if it is set, it must exist :-pidfile="${named_pidfile:-/var/run/${name}.pid}" :+pidfile="${named_chrootdir}${named_pidfile:-/var/run/${name}.pid}" : : run_rc_command "$1" Looks good, I'll commit it! :as far as named.restart, would it make sense to have it exec :/etc/rc.d/named restart as opposed to having duplicated code? : :-Brad Or we might just be able to use the rc helper utilities, which do exactly that. e.g. 'rcrestart named'.... yup, that seems to work. I'll make the change. -Matt
文章代碼(AID): #10k-ER00 (DFBSD_submit)
文章代碼(AID): #10k-ER00 (DFBSD_submit)