From: Russ Allbery Date: Thu, 6 Oct 2005 23:01:24 +0000 (+0000) Subject: * Install afsd in /sbin rather than /usr/sbin. While putting /usr in X-Git-Tag: debian/1.4.0-1~10 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f843d6d80e24466546116d40c13a10d322688dea;p=packages%2Fo%2Fopenafs.git * Install afsd in /sbin rather than /usr/sbin. While putting /usr in AFS isn't as common as it once was, no reason to make it harder than it needs to be. --- diff --git a/debian/changelog b/debian/changelog index a78efd6c4..e1eaea754 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ openafs (1.4rc6-1) unstable; urgency=low * New upstream version. - Builds correctly with 2.6.13 kernels and software suspend. + * Install afsd in /sbin rather than /usr/sbin. While putting /usr in + AFS isn't as common as it once was, no reason to make it harder than + it needs to be. -- diff --git a/debian/openafs-client.init b/debian/openafs-client.init index 18d4500e0..d73f96dc3 100755 --- a/debian/openafs-client.init +++ b/debian/openafs-client.init @@ -124,15 +124,15 @@ choose_afsd_options() { } # Start afsd. Be careful not to start it if another one is already running, -# as that has a bad tendency to hang the system. +# as that has a bad tendency to hang the system. Earlier versions of the +# openafs-client package put afsd in /usr/sbin. start_client() { - if pidof /usr/sbin/afsd >/dev/null ; then + if pidof /sbin/afsd >/dev/null || pidof /usr/sbin/afsd >/dev/null ; then echo "." else choose_afsd_options echo " afsd." - start-stop-daemon --start --quiet --exec /usr/sbin/afsd \ - -- $AFSD_OPTIONS + start-stop-daemon --start --quiet --exec /sbin/afsd -- $AFSD_OPTIONS fi # From /etc/openafs/afs.conf.client, whether to enable fcrypt encryption. @@ -180,7 +180,7 @@ kill_all_afs() { case "$1" in start) - if is_on $AFS_CLIENT && test -x /usr/sbin/afsd ; then + if is_on $AFS_CLIENT && test -x /sbin/afsd ; then echo -n "Starting AFS services:" if load_client ; then start_client @@ -194,7 +194,7 @@ start) ;; force-start) - if test -x /usr/sbin/afsd ; then + if test -x /sbin/afsd ; then echo -n "Starting AFS services:" if load_client ; then start_client @@ -215,6 +215,7 @@ stop|force-stop) echo -n " afsd" fi pidof /usr/sbin/afsd >/dev/null && afsd -shutdown + pidof /sbin/afsd >/dev/null && afsd -shutdown LIBAFS=`/sbin/lsmod | awk 'BEGIN { FS = " " } /openafs/ { print $1 }'` if [ -n "$LIBAFS" ] ; then diff --git a/debian/openafs-client.install b/debian/openafs-client.install index ed9289b95..ae08ea2b3 100644 --- a/debian/openafs-client.install +++ b/debian/openafs-client.install @@ -18,4 +18,4 @@ dest/etc/backup usr/sbin dest/etc/butc usr/sbin dest/etc/fms usr/sbin -dest/root.client/usr/vice/etc/afsd usr/sbin +dest/root.client/usr/vice/etc/afsd sbin