]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- stderr redirected anyway, nothing special needed in configtest()
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 16 Oct 2009 08:50:34 +0000 (08:50 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 16 Oct 2009 08:50:34 +0000 (08:50 +0000)
svn-id: @10792

rc.d/init.d/template.init

index 12c24962cd50ab1a7a33d979428781af0e1a0ab6..3b81c5328cb4e9bf4747c0eb0f9358f711375950 100644 (file)
@@ -41,7 +41,7 @@ fi
 # must return non-zero if check failed
 # output is discarded if checkconfig is ran without details
 configtest() {
-       /usr/sbin/<service> -t 2>&1
+       /usr/sbin/<service> -t
        return $?
 }
 
@@ -53,7 +53,7 @@ checkconfig() {
                # run config test and display report (status action)
                show "Checking %s configuration" "<service_name>"; busy
                local out
-               out=`configtest 2>&1`
+               out=$(configtest 2>&1)
                RETVAL=$?
                if [ $RETVAL = 0 ]; then
                        ok
This page took 0.039717 seconds and 4 git commands to generate.