]> git.pld-linux.org Git - packages/apache.git/commitdiff
- no need for the $RET variable
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 18 May 2005 15:27:58 +0000 (15:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.init -> 1.41

apache.init

index 439445c29ed0df6c71806b4c5076c1804ddb99a5..3fed5059ed697e358a715449d275ae3c8f8436c4 100644 (file)
@@ -61,9 +61,8 @@ case "$1" in
        if [ -f /var/lock/subsys/httpd ]; then
                msg_stopping httpd.${HTTPD_MPM}
                daemon --waitforname httpd.${HTTPD_MPM} --waitfortime 60 httpd.${HTTPD_MPM} $CFG -k stop
-               RET=$?
                # Delete pidfile only when apache was called successfully
-               if [ $RET -eq 0 ]; then
+               if [ $? -eq 0 ]; then
                        rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
                fi
        else
This page took 0.041329 seconds and 4 git commands to generate.