3 # newscache Proxy DNS Daemon
7 # description: Proxy DNS Daemon
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/newscache ] && . /etc/sysconfig/newscache
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down NewsCache
31 test -x /usr/sbin/newscache || exit 0
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/newscache ]; then
38 msg_starting NewsCache
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/newscache
43 msg_already_running NewsCache
47 if [ -f /var/lock/subsys/newscache ]; then
48 msg_stopping NewsCache
50 rm -f /var/lock/subsys/newscache >/dev/null 2>&1
52 msg_not_running NewsCache
65 # show "Usage: %s {start|stop|restart|restart}"
66 msg_usage "$0 {start|stop|restart|restart}"