void-runit icon indicating copy to clipboard operation
void-runit copied to clipboard

NetworkManager does not stop correct on runit-shutdown

Open dataCobra opened this issue 3 years ago • 0 comments

I use the dispatcher.d functionality from NetworkManager for mounting my NAS when I connect to the correct wifi via UUID. When the NetworkManager stops, the pre-down function from the dispatcher gets triggered and unmounts the NAS safely before disconnecting from the wifi.

This works as expected when I use sv "down, stop or force-stop" NetworkManager on the running system.

When the NM service stops on runit-shutdown however, the pre-down seems to not get triggered.

The shutdown process seems to try to unmount the mountpoint of the NAS but can't do it safely because it can no longer reach the NAS it the network. The shutdown process takes ~5 minutes in this situation because the unmount gives up after sometime.

To check this I let rc.shutdown output STDOUT from mount and I could see the NAS mountpoint was still there after the services stopped.

We talked alot about this in the irc channel but couldn't figure out why this happens.

I hope we can find a solution this way.

If you need more information just ask. :+1:

Regards, Ben

dataCobra avatar Aug 09 '22 11:08 dataCobra