blob: 5ec069e0fd5048ce6471b44de5d9a89351ac241e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc7,v 1.1 2012/12/19 01:14:36 polynomial-c Exp $
command="/usr/sbin/pdnsd"
command_args="-s -t -d -p /var/run/pdnsd.pid ${PDNSDCONFIG}"
extra_started_commands="reload"
pidfile="/var/run/pdnsd.pid"
depend() {
need net
provide dns
}
start_pre() {
if [ ! -e /etc/pdnsd/pdnsd.conf ] ; then
eerror "You need an /etc/pdnsd/pdnsd.conf file first."
eerror "There is a sample in /etc/pdnsd/pdnsd.conf.sample"
return 1
fi
checkpath -o pdnsd -d /var/cache/pdnsd
}
reload() {
ebegin "Reloading pdnsd.conf"
/usr/sbin/pdnsd-ctl config
eend $?
}
|