Fix for myplc-native:
[myplc.git] / plc.d / dns
index ac639e4..b819e32 100755 (executable)
--- a/plc.d/dns
+++ b/plc.d/dns
@@ -8,18 +8,19 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: dns,v 1.1 2006/05/23 18:10:08 mlhuang Exp $
+# $Id$
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
 . /etc/planetlab/plc_config
 
+# Be verbose
+set -x
+
 case "$1" in
     start)
-       if [ "$PLC_DNS_ENABLED" != "1" ] ; then
-           exit 0
-       fi
+       [ $PLC_DNS_ENABLED -ne 1 ] && exit 0
 
        MESSAGE=$"Starting DNS server"
        dialog "$MESSAGE"
@@ -34,6 +35,7 @@ case "$1" in
        ;;
 
     stop)
+       [ $PLC_DNS_ENABLED -ne 1 ] && exit 0
        MESSAGE=$"Stopping DNS server"
        dialog "$MESSAGE"