aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdnsd/gdnsd.initd
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-08-02 13:25:45 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-08-02 13:27:42 +0300
commit766ffa0f26fa85486ce272c8260924bfffcabf65 (patch)
tree016b24ba0eec185a29c83d4f30d0a0cf3cfd7652 /testing/gdnsd/gdnsd.initd
parentef2efd572dc4a06a1951f8d952a0e78d42b9f3d4 (diff)
downloadaports-766ffa0f26fa85486ce272c8260924bfffcabf65.tar.bz2
aports-766ffa0f26fa85486ce272c8260924bfffcabf65.tar.xz
main/gdnsd: upgrade to 1.9.0 (from testing)
Diffstat (limited to 'testing/gdnsd/gdnsd.initd')
-rwxr-xr-xtesting/gdnsd/gdnsd.initd53
1 files changed, 0 insertions, 53 deletions
diff --git a/testing/gdnsd/gdnsd.initd b/testing/gdnsd/gdnsd.initd
deleted file mode 100755
index 9820052bee..0000000000
--- a/testing/gdnsd/gdnsd.initd
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/sbin/runscript
-
-name="gdnsd daemon"
-extra_commands="configtest"
-extra_started_commands="reload fastrestart"
-description="Geographic Authoritative DNS server"
-description_configtest="Run syntax tests for configuration files only."
-description_reload="Signal running gdnsd to reload configuration files"
-description_fastrestart="Optimized restart sequence (minimizes down time)"
-
-if [ -z "${GDNSD_CONFFILE}" ]; then
- if [ "${SVCNAME}" = "gdnsd" ]; then
- GDNSD_ROOT=system
- else
- GDNSD_ROOT=/var/gdnsd/${SVCNAME}
- fi
-fi
-
-depend() {
- need net
- use logger
- after firewall
- provide auth-dns
-}
-
-act() {
- ebegin "$1 ${SVCNAME}"
- /usr/sbin/gdnsd -d ${GDNSD_ROOT} $2
- eend $?
-}
-
-configtest() {
- act "Checking configuration" checkconf
-}
-
-start() {
- act "Starting" start
-}
-
-stop () {
- if [ "${RC_CMD}" = "restart" ]; then
- configtest || return 1
- fi
- act "Stopping" stop
-}
-
-fastrestart() {
- act "Restarting" restart
-}
-
-reload() {
- act "Reloading" reload
-}