Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 65335
Collapse All | Expand All

(-)file_not_specified_in_diff (-9 / +17 lines)
Line  Link Here
0
-- named.rc6   2004-07-14 19:36:02.000000000 -0400
0
++ /etc/init.d/named   2005-04-14 15:43:44.965464927 -0400
Lines 21-39 Link Here
21
               CPU=1
21
               CPU=1
22
       fi
22
       fi
23
       if [ $CHROOT -a -d $CHROOT ] ; then
23
       # As with the named.conf test, above, there's no need
24
               PIDFILE="${CHROOT}/var/run/named/named.pid"
24
       # for chroot and non-chroot cases here
25
               KEY="${CHROOT}/etc/bind/rndc.key"
25
       PIDFILE=$(grep "pid-file" ${CHROOT}/etc/bind/named.conf | \
26
       else
26
                 egrep -v ".*[#,//].*pid-file" | \
27
               PIDFILE="/var/run/named/named.pid"
27
                 head -n 1 | \
28
               KEY="/etc/bind/rndc.key"
28
                 sed -ne 's:.*pid-file \"\(.*\)\";:\1:p')
29
       fi
29
       [ -n "$PIDFILE" ] || PIDFILE=/var/run/named.pid
30
       PIDFILE="${CHROOT}$PIDFILE"
31
32
       KEY="${CHROOT}/etc/bind/rndc.key"
30
}
33
}
31
start() {
34
start() {
32
       ebegin "Starting ${CHROOT:+chrooted }named"
35
       ebegin "Starting ${CHROOT:+chrooted }named"
33
       checkconfig || return 1
36
       checkconfig || return 1
34
       start-stop-daemon --start --quiet --exec /usr/sbin/named -- -u named -n $CPU $OPTIONS ${CHROOT:+-t $CHROOT}
37
       start-stop-daemon --start --quiet --pidfile $PIDFILE \
38
               --exec /usr/sbin/named \
39
               -- -u named -n $CPU $OPTIONS ${CHROOT:+-t $CHROOT}
40
35
       eend $?
41
       eend $?
36
}
42
}
Lines 62-66 Link Here
62
restart() {
68
restart() {
63
       svc_stop
69
       svc_stop
70
       # the pid file is not removed quickly enough
71
       sleep 5
64
       svc_start
72
       svc_start
65
}
73
}

Return to bug 65335