summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/pdnsd
blob: 9adeb5546ddbfbba5d23b7f867dd95c0989088c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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