From: Sam Hartman Date: Thu, 20 Nov 2003 23:27:56 +0000 (+0000) Subject: fix init.d script X-Git-Tag: debian/1.2.10-3 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d81ba8aa375498683e526b25ac90ae072ba76478;p=packages%2Fo%2Fopenafs.git fix init.d script --- diff --git a/src/afsd/afs.rc.linux b/src/afsd/afs.rc.linux index 831f38bcb..b300cb885 100644 --- a/src/afsd/afs.rc.linux +++ b/src/afsd/afs.rc.linux @@ -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