Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 65682 Details for
Bug 102135
init-script for named/bind 9.3.1-r3 asks for options
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
working init-script
named (text/plain), 1.82 KB, created by
Christian
on 2005-08-11 10:48:41 UTC
(
hide
)
Description:
working init-script
Filename:
MIME Type:
Creator:
Christian
Created:
2005-08-11 10:48:41 UTC
Size:
1.82 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.rc6,v 1.15 2004/07/14 23:18:19 agriffis >#Exp $ > >opts="start stop reload restart" > >depend() { > need net > use logger > provide dns >} > >checkconfig() { > if [ ! -f ${CHROOT}/etc/bind/named.conf ] ; then > eerror "No ${CHROOT}/etc/bind/named.conf file exists!" > fi > > # In case someone doesn't have $CPU set from /etc/conf.d/named > if [ ! $CPU ] ; then > 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 >} > >start() { > ebegin "Starting ${CHROOT:+chrooted }named" > checkconfig || return 1 > start-stop-daemon --start --quiet --exec /usr/sbin/named \ > --pid ${CHROOT}/var/run/named/named.pid \ > -- -u named -n $CPU $OPTIONS ${CHROOT:+-t $CHROOT} > eend $? >} > >stop() { > ebegin "Stopping ${CHROOT:+chrooted }named" > checkconfig || return 2 > start-stop-daemon --stop --quiet --pidfile $PIDFILE \ > --exec /usr/sbin/named -- stop > eend $? >} > >reload() { > checkconfig || return 3 > if [ ! -f $PIDFILE ] ; then > /etc/init.d/named start &>/dev/null > exit > fi > > if [ -f $KEY ] ; then > ebegin "Reloading named.conf and zone files" > rndc -k $KEY reload &>/dev/null > eend $? > else /etc/init.d/named restart &>/dev/null > fi >} > >restart() { > svc_stop > 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 Raw
Actions:
View
Attachments on
bug 102135
:
65678
| 65682