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_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
33 [ -f "/etc/sysconfig/$SERVICE" ] && . "/etc/sysconfig/$SERVICE"
36 if [ ! -f "$LOCKFILE" ]; then
40 [ $RETVAL -eq 0 ] && touch $LOCKFILE
42 msg_already_running $MSG
47 if [ -f "$LOCKFILE" ]; then
50 rm -f $LOCKFILE >/dev/null 2>&1
52 msg_not_running "$MSG"
57 if [ -f "$LOCKFILE" ]; then
61 msg_not_running "$MSG"
67 # See how we were called.
90 msg_usage "$0 {start|stop|restart|force-reload|status}"