blob: 1f216fbc2d01feaa1208d5fc960ee3b0b69052f8 (
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
|
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
pidfile="/run/pdnsd.pid"
command="/usr/sbin/pdnsd"
command_args="-s -t -d -p ${pidfile} ${PDNSDCONFIG}"
extra_started_commands="reload"
depend() {
use 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
}
reload() {
ebegin "Reloading pdnsd.conf"
/usr/sbin/pdnsd-ctl config
eend $?
}
|