diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dns/pdnsd/files/pdnsd.rc8 |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dns/pdnsd/files/pdnsd.rc8')
-rw-r--r-- | net-dns/pdnsd/files/pdnsd.rc8 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-dns/pdnsd/files/pdnsd.rc8 b/net-dns/pdnsd/files/pdnsd.rc8 new file mode 100644 index 000000000000..1f216fbc2d01 --- /dev/null +++ b/net-dns/pdnsd/files/pdnsd.rc8 @@ -0,0 +1,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 $? +} |