[Pkg-sysvinit-devel] Bug#552104: Bug#552104: initscripts: sendsigs is executed before remote file systems (cifs) are disconnected

Teodor mteodor at gmail.com
Sun Nov 1 14:06:46 UTC 2009


Hi Petter,

On Fri, Oct 23, 2009 at 3:12 PM, Petter Reinholdtsen <pere at hungry.com> wrote:
> I recently got an idea how to work around this issue, by umounting
> networked file system before the network interfaces are taken down.
> Try adding a script with this code as /etc/network/if-down.d/umountnfs:
>
>  #!/bin/sh
>  umount -t cifs -a
>
> It might make sure cifs file systems are umounted just before
> network-manager take down the network interfaces.

For some reason this workarround didn't worked. I've tried to avoid
'sendsigs' killing NetworkManager and dhcp* processes the same way
it's done for rsyslogd but it's not clean for the ROOT file system. I
haven't tried to debug it as it's not a real solution in my opinion
("/etc/init.d/networking restart" it waits forever).

The only good workaround I have right now is to execute the command
you specified (umount -t cifs -a) in 'sendsig' before sending any
signal to the remaining processes. So far this is the only wat to
avoid an unclean ROOT file system followed by a forced kernel reboot
at every 2-3 startups.

Thanks





More information about the Pkg-sysvinit-devel mailing list