Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 216912 Details for
Bug 128246
new ebuild net-dns/nsd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/nsd.initd
nsd.initd (text/plain), 1.53 KB, created by
Tom Hendrikx
on 2010-01-19 15:56:49 UTC
(
hide
)
Description:
files/nsd.initd
Filename:
MIME Type:
Creator:
Tom Hendrikx
Created:
2010-01-19 15:56:49 UTC
Size:
1.53 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2009 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ ># >opts="${opts} reload" >description="NSD is an authoritative only, high performance, open source name server" >description_start="Start the server" >description_stop="Stop the server" >description_reload="Rebuild zone database and reload it" > >config_file=${config_file:-/etc/nsd/nsd.conf} >my_nsdc="/usr/sbin/nsdc" >my_nsd_checkconf="/usr/sbin/nsd-checkconf" > >depend() { > need net > use logger > provide auth-dns >} > >_checkconf() { > if [ ! -e "${config_file}" ]; then > eerror "You need to create an appropriate config file." > eerror "An example can be found in /etc/nsd/nsd.conf.sample" > return 1 > fi > > if ! ${my_nsd_checkconf} "${config_file}"; then > eerror "You have errors in your configfile (${config_file})" > return 1 > fi > return 0 >} > >_patch() { > local difffile=`${my_nsd_checkconf} -o difffile ${config_file}` > if test -s ${difffile}; then > ebegin "Patching NSD zone files" > ${my_nsdc} patch > /dev/null > eend $? > fi >} > >_rebuild() { > if ! ${my_nsdc} rebuild > /dev/null; then > eerror "There was an error rebuilding the database. Please review your zone files." > return 1 > fi > return 0 >} > >start() { > ebegin "Starting NSD" > _checkconf || return 1 > ${my_nsdc} start > ${my_nsdc} running > eend $? >} > >stop() { > ebegin "Stopping NSD" > _patch > ${my_nsdc} stop > eend $? >} > >reload() { > ebegin "Rebuilding and reloading NSD zone database" > _checkconf || return 1 > _rebuild || return 1 > ${my_nsdc} reload > eend $? >}
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 128246
:
83501
|
83502
|
83503
|
83525
|
86164
|
88177
|
115976
|
127685
|
127687
|
127863
|
135197
|
136154
|
144536
|
144540
|
144542
|
160549
|
160560
|
160738
|
160739
|
160741
|
191948
|
191950
|
216909
|
216910
|
216911
|
216912
|
260798
|
260800
|
305891
|
305893
|
305945