3 # pdns Proxy DNS Daemon
7 # description: Proxy DNS Daemon
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
21 # Get service config - may override defaults
22 [ -f /etc/sysconfig/pdnsd ] && . /etc/sysconfig/pdnsd
24 # Check that networking is up.
25 if is_no "${NETWORKING}"; then
26 msg_Network_Down Pdnsd
30 test -x /usr/sbin/pdnsd || exit 0
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/pdns ]; then
37 daemon pdnsd --daemon $STATUS $DEBUG $VERBOSE
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pdns
41 msg_Already_Running Pdns
47 # show "Stopping %s service" pdns
48 if [ -f /var/lock/subsys/pdns ]; then
51 rm -f /var/lock/subsys/pdns >/dev/null 2>&1
62 if [ -f /var/lock/subsys/pdns ]; then
75 # if program allows reloading without stopping
88 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
89 msg_Usage "$0 {start|stop|status|restart|reload|force-reload}"