3 # Startup script for the DNS caching server
5 # chkconfig: 2345 81 45
6 # description: Anubis is an outgoing mail processor, and the SMTP tunnel.
8 # config: /etc/anubisrc
10 # Set some frequently user variables
12 LOCKFILE=/var/lock/subsys/$SERVICE
16 # Source funtion library
17 . /etc/rc.d/init.d/functions
20 . /etc/sysconfig/network
22 # Check that networking is up
23 if is_no "$NETWORKING"; then
29 [ -f "/etc/sysconfig/$SERVICE" ] && . "/etc/sysconfig/$SERVICE"
31 # See how we were called.
34 if [ ! -f "$LOCKFILE" ]; then
38 [ $RETVAL -eq 0 ] && touch $LOCKFILE
40 msg_Already_Running $MSG
45 if [ -f "$LOCKFILE" ]; then
48 rm -f $LOCKFILE >/dev/null 2>&1
50 msg_Not_Running "$MSG"
63 msg_Usage "$0 {start|stop|restart|reload|status}"