Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 56288 Details for
Bug 65335
The init.d script for named got a bogus start command
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
named init script pid fix
named.rc6-pidfix (text/plain), 1.41 KB, created by
Jacob Joseph
on 2005-04-14 12:47:00 UTC
(
hide
)
Description:
named init script pid fix
Filename:
MIME Type:
Creator:
Jacob Joseph
Created:
2005-04-14 12:47:00 UTC
Size:
1.41 KB
patch
obsolete
>--- named.rc6 2004-07-14 19:36:02.000000000 -0400 >+++ /etc/init.d/named 2005-04-14 15:43:44.965464927 -0400 >@@ -21,19 +21,25 @@ > CPU=1 > fi > >- if [ $CHROOT -a -d $CHROOT ] ; then >- PIDFILE="${CHROOT}/var/run/named/named.pid" >- KEY="${CHROOT}/etc/bind/rndc.key" >- else >- PIDFILE="/var/run/named/named.pid" >- KEY="/etc/bind/rndc.key" >- fi >+ # As with the named.conf test, above, there's no need >+ # for chroot and non-chroot cases here >+ PIDFILE=$(grep "pid-file" ${CHROOT}/etc/bind/named.conf | \ >+ egrep -v ".*[#,//].*pid-file" | \ >+ head -n 1 | \ >+ sed -ne 's:.*pid-file \"\(.*\)\";:\1:p') >+ [ -n "$PIDFILE" ] || PIDFILE=/var/run/named.pid >+ PIDFILE="${CHROOT}$PIDFILE" >+ >+ KEY="${CHROOT}/etc/bind/rndc.key" > } > > start() { > ebegin "Starting ${CHROOT:+chrooted }named" > checkconfig || return 1 >- start-stop-daemon --start --quiet --exec /usr/sbin/named -- -u named -n $CPU $OPTIONS ${CHROOT:+-t $CHROOT} >+ start-stop-daemon --start --quiet --pidfile $PIDFILE \ >+ --exec /usr/sbin/named \ >+ -- -u named -n $CPU $OPTIONS ${CHROOT:+-t $CHROOT} >+ > eend $? > } > >@@ -62,5 +68,7 @@ > > restart() { > svc_stop >+ # the pid file is not removed quickly enough >+ sleep 5 > svc_start > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 65335
: 56288