projects
/
openwrt
/
svn-archive
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee1188
)
Fix named.init check against returned values by bind (#4039)
author
Florian Fainelli
<florian@openwrt.org>
Sat, 27 Sep 2008 10:49:17 +0000
(10:49 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Sat, 27 Sep 2008 10:49:17 +0000
(10:49 +0000)
SVN-Revision: 12724
net/bind/files/named.init
patch
|
blob
|
history
diff --git
a/net/bind/files/named.init
b/net/bind/files/named.init
index 99b8e0b3ff211b159d46038f07816f5b5ab793ad..b845e898aae3374bd52a960038c5fe32419ce0ea 100644
(file)
--- a/
net/bind/files/named.init
+++ b/
net/bind/files/named.init
@@
-9,7
+9,7
@@
start() {
/usr/sbin/named -c $config_file
- if [ $
$
-eq 0 ]
+ if [ $
?
-eq 0 ]
then
echo " isc-bind failed to start"
fi
@@
-21,7
+21,7
@@
stop() {
then
kill `cat $pid_file`
- if [ $
$
-eq 0 ]
+ if [ $
?
-eq 0 ]
then
echo " PID " `cat $pid_file` not found
echo " Is the named server running?"