]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix exit codes in nscd start script
authorAndreas Schwab <schwab@redhat.com>
Thu, 10 Sep 2009 13:20:12 +0000 (15:20 +0200)
committerAndreas Schwab <schwab@redhat.com>
Thu, 10 Sep 2009 13:20:12 +0000 (15:20 +0200)
nscd/nscd.init

index 8ab3fbf7317d6eccc6e9c71fa5441ae85443e7e8..df313c59e0cee4c39ab6565d513d811601033615 100644 (file)
@@ -72,7 +72,7 @@ restart() {
 # See how we were called.
 case "$1" in
     start)
-       start
+       [ -e /var/lock/subsys/nscd ] || start
        RETVAL=$?
        ;;
     stop)
@@ -88,7 +88,7 @@ case "$1" in
        RETVAL=$?
        ;;
     try-restart | condrestart)
-       [ -e /var/lock/subsys/nscd ] && restart
+       [ ! -e /var/lock/subsys/nscd ] || restart
        RETVAL=$?
        ;;
     force-reload | reload)