[Bug 646694] [NEW] autofs does not stop when the system is halted

Daniel Lezcano 646694 at bugs.launchpad.net
Fri Sep 24 11:00:12 BST 2010


Public bug reported:

Binary package hint: autofs

Ubuntu version:

Description:	Ubuntu 10.04 LTS
Release:	10.04

Package version:

Architecture: amd64
Source: autofs5
Version: 5.0.4-3.1ubuntu5
Depends: autofs5


When the system halts, a signal is delivered to all the processes but automount does not receive it.

The sendsigs init script will build a list of processes to be omitted when sending a signal.
The omitted processes are the one not killed by the upstart jobs and the ones defined in the /lib/init/rw/sendsigs.omit.d/, /var/run/sendsigs.omit.

automount is not killed by upstart because the 'stop' action is not
defined in /etc/init/autofs.conf, then it will belongs to the omitted
processes list and therefore won't be killed.

In the normal use case, this is not visible because the shutdown will happens normally.
In the container context (lxc.sourceforge.net), it appears there are some remaining processes while the system is halted.

IMO, this is not the right behavior, the automount should receive a
SIGTERM at shutdown time, this signal is catched and the daemon will do
a proper shutdown. I was wondering if the autofs.conf script shouldn't
have:

stop on runlevel [!2345]

Then the upstart job will deliver the sigterm signal to the process, and the automount will do its shutdown job normally.
It is cleaner for the system, and make it works for the container.

** Affects: autofs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
autofs does not stop when the system is halted
https://bugs.launchpad.net/bugs/646694
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to autofs in ubuntu.



More information about the Ubuntu-server-bugs mailing list