Fix named.init check against returned values by bind (#4039)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@12724 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2008-09-27 10:49:17 +00:00
parent ce0a7af0c5
commit a95091be9a

View File

@ -9,7 +9,7 @@ start() {
/usr/sbin/named -c $config_file /usr/sbin/named -c $config_file
if [ $$ -eq 0 ] if [ $? -eq 0 ]
then then
echo " isc-bind failed to start" echo " isc-bind failed to start"
fi fi
@ -21,7 +21,7 @@ stop() {
then then
kill `cat $pid_file` kill `cat $pid_file`
if [ $$ -eq 0 ] if [ $? -eq 0 ]
then then
echo " PID " `cat $pid_file` not found echo " PID " `cat $pid_file` not found
echo " Is the named server running?" echo " Is the named server running?"