]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix init.d script debian/1.2.10-3
authorSam Hartman <hartmans@debian.org>
Thu, 20 Nov 2003 23:27:56 +0000 (23:27 +0000)
committerSam Hartman <hartmans@debian.org>
Thu, 20 Nov 2003 23:27:56 +0000 (23:27 +0000)
src/afsd/afs.rc.linux

index 831f38bcb2f65effd0c5266a45564d4ff2240d9c..b300cb885bd42f62f6a7cc5fbe9973f6154eecd1 100644 (file)
@@ -137,9 +137,12 @@ load_client() {
 
 # start_client() -- run afsd
 start_client() {
-               start-stop-daemon --start --quiet --exec /usr/sbin/afsd \
-                   -- ${OPTIONS}
-               echo -n " afsd"
+               if pidof /usr/sbin/afsd >/dev/null ; then : 
+                   else
+                   start-stop-daemon --start --quiet --exec /usr/sbin/afsd \
+                       -- ${OPTIONS}
+                   echo -n " afsd"
+                   fi
                if [ x$AFS_CRYPT = xtrue ] ; then
                    fs setcrypt on
                    fi
@@ -189,7 +192,7 @@ force-start)
                umount /afs
                echo -n " afsd"
        fi
-       pidof afsd >/dev/null &&afsd -shutdown
+       pidof /usr/sbin/afsd >/dev/null &&afsd -shutdown
 
        LIBAFS=`/sbin/lsmod | fgrep openafs`
        if [ -n "$LIBAFS" ] ; then