Package: autofs
Version: 5.0.8-2+deb8u1
Severity: important
Tags: patch
Dear Maintainer,
* What led up to the situation?
I noticed that our autofs mounts were not being unmounted AFTER the
configuration was reloaded (HUP)
* What exactly did you do (or not do) that was effective (or
ineffective)?
I was able to patch autofs 5.0.8 with:
https://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.9/autofs-5.0.8-fix-task-manager-not-getting-signaled.patch
That patch was effective.
* What was the outcome of this action?
The automount process is responsive to USR1 and TERM, and also unmounts
expired mounts after running the patched code.
* What outcome did you expect instead?
I would like to ask the maintainer to apply the patch to the autofs
5.0.8 package to Jessie.
-- System Information:
Debian Release: 8.5
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages autofs depends on:
ii libc6 2.19-18+deb8u4
ii libxml2 2.9.1+dfsg1-5+deb8u2
ii multiarch-support 2.19-18+deb8u4
ii ucf 3.0030
Versions of packages autofs recommends:
ii kmod 18-3
ii nfs-common 1:1.2.8-9
autofs suggests no packages.
-- Configuration Files:
/etc/init.d/autofs changed:
DAEMON=/usr/local/autofs/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
confdir=/etc/default
test -e $DAEMON || exit 0
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
if [ -r $confdir/autofs ]; then
. $confdir/autofs
fi
function start() {
echo -n "Starting $prog: "
# Make sure autofs4 module is loaded
if ! grep -q autofs /proc/filesystems
then
# Try load the autofs4 module fail if we can't
modprobe $MODULE >/dev/null 2>&1
if [ $? -eq 1 ]
then
echo "Error: failed to load autofs4 module."
return 1
fi
elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
then
# wrong autofs filesystem module loaded
echo
echo "Error: autofs kernel module is loaded, autofs4 required"
return 1
fi
# Check misc device
if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
sleep 1
if [ -e "/proc/misc" ]; then
MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
mknod -m 0600 /dev/$DEVICE c 10 $MINOR
fi
fi
if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
/sbin/restorecon /dev/$DEVICE
fi
else
if [ -c /dev/$DEVICE ]; then
rm /dev/$DEVICE
fi
fi
$prog $OPTIONS
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
echo "done."
else
echo "failed."
fi
return $RETVAL
}
function stop() {
echo -n $"Stopping $prog: "
count=0
while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
killall -TERM $prog >& /dev/null
RETVAL=$?
[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 20
count=`expr $count + 1`
done
if [ -z "`pidof $prog`" ] ; then
echo "done."
else
echo "failed."
fi
return $RETVAL
}
function restart() {
stop
while [ -n "`pidof $prog`" ] ; do
sleep 5
done
start
}
function reload() {
pid=`pidof $prog`
if [ -z $pid ]; then
echo $"$prog not running"
RETVAL=1
else
kill -HUP $pid 2> /dev/null
echo $"Reloading maps"
RETVAL=0
fi
return $RETVAL
}
RETVAL=0
case "$1" in
start)
start
;;
forcestart)
OPTIONS="$OPTIONS --force"
start
;;
stop)
stop
;;
restart)
restart
;;
forcerestart)
OPTIONS="$OPTIONS --force"
restart
;;
reload)
reload
;;
*)
echo $"Usage: $0
{start|forcestart|stop|restart|forcerestart|reload}"
exit 1;
;;
esac
exit $?
-- debconf-show failed