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
16 # Get service config - may override defaults
17 [ -f /etc/sysconfig/pdnsd ] && . /etc/sysconfig/pdnsd
19 # Check that networking is up.
20 if is_no "${NETWORKING}"; then
21 msg_Network_Down Pdnsd
25 test -x /usr/sbin/pdnsd || exit 0
29 # Check if the service is already running?
30 if [ ! -f /var/lock/subsys/pdns ]; then
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pdns
36 msg_Already_Running Pdns
42 # show "Stopping %s service" pdns
43 if [ -f /var/lock/subsys/pdns ]; then
46 rm -f /var/lock/subsys/pdns >/dev/null 2>&1
57 if [ -f /var/lock/subsys/pdns ]; then
70 # if program allows reloading without stopping
83 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
84 msg_Usage "$0 {start|stop|status|restart|reload|force-reload}"