summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/pdnsd
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/init.d/pdnsd')
-rwxr-xr-xsbin/init.d/pdnsd16
1 files changed, 16 insertions, 0 deletions
diff --git a/sbin/init.d/pdnsd b/sbin/init.d/pdnsd
new file mode 100755
index 0000000..9adeb55
--- /dev/null
+++ b/sbin/init.d/pdnsd
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. `dirname $0`/functions
+
+option config standard_option /etc/pdnsd.conf
+option pidfile reserved_option /var/run/syslog-ng.pid
+
+option bin reserved_option /usr/sbin/pdnsd
+option cmdline reserved_option '$bin -c $opt_config -d -p $pidfile'
+
+# perform a forced synchronisation before starting the daemon
+function fct_pre_start {
+ if [ ! -d /var/cache/pdnsd ] ; then mkdir -p /var/cache/pdnsd ; fi
+}
+
+load_config