blob: 4ab22e4ac395109eaa47927be7bad833fdba453f (
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
31
|
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc6,v 1.5 2003/03/10 08:25:32 aliz Exp $
depend() {
need net
provide dns
}
checkconfig() {
if [ ! -e /etc/pdnsd/pdnsd.conf ] ; then
eerror "You need an /etc/pdnsd/pdnsd.conf file first"
eerror "There is a sample in /usr/share/doc/pdnsd"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting pdnsd"
start-stop-daemon --start --quiet --exec /usr/sbin/pdnsd \
-- -t -d -p /var/run/pdnsd.pid
eend $?
}
stop() {
ebegin "Stopping pdnsd"
start-stop-daemon --stop --quiet --pidfile /var/run/pdnsd.pid
eend $?
}
|