git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7cca3d
)
Do not perform DNS service actions if PLC_DNS_ENABLED!=1
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 25 Jan 2008 19:03:48 +0000
(19:03 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 25 Jan 2008 19:03:48 +0000
(19:03 +0000)
plc.d/dns
patch
|
blob
|
history
diff --git
a/plc.d/dns
b/plc.d/dns
index
9b5b192
..
b819e32
100755
(executable)
--- a/
plc.d/dns
+++ b/
plc.d/dns
@@
-20,9
+20,7
@@
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"
@@
-37,6
+35,7
@@
case "$1" in
;;
stop)
+ [ $PLC_DNS_ENABLED -ne 1 ] && exit 0
MESSAGE=$"Stopping DNS server"
dialog "$MESSAGE"