Bug 346225 - Plasma kills NetworkManager preventing dispatcher from executing pre-down action on shutdown
Summary: Plasma kills NetworkManager preventing dispatcher from executing pre-down act...
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.2.95
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-15 17:03 UTC by Soukyuu
Modified: 2015-04-15 17:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Soukyuu 2015-04-15 17:03:11 UTC
Ever since updating from kde4 to plasma on my experimental machine, the NetworkManager-dispatcher.service has stopped detecting the "pre-down" state and skips to "down" state instead. This indicates a forcible disconnection and results in any CIFS shares left unmounted, hanging the shutdown process for 90 seconds.

Reproducible: Always

Steps to Reproduce:
1. configure NetworkManager-dispatcher.service [1]
2. put a script into /etc/NetworkManager/dispatcher.d/pre-down.d and configure permission accordingly [2]
3. manually disconnect from the network
4. restart
5. stay connected to the network
6. restart

Actual Results:  
second shutdown will hang at "unmounting <your cifs share>"

Expected Results:  
the shares should have been unmounted on both restarts

At first I suspected SDDM, but I have now tried it with LXDM as well and it shows the same behavior. The pre-down state sometimes does trigger when logging out of plasma instead of restart/shutdown, but never on restart/shutdown.

With plasma's shutdown scripts not working, I'm out of options to automatically unmount any shares before disconnecting.

[1] https://wiki.archlinux.org/index.php/NetworkManager#Network_services_with_NetworkManager_dispatcher
[2] https://wiki.archlinux.org/index.php/NetworkManager#Use_dispatcher_to_handle_mounting_of_CIFS_shares
Comment 1 Soukyuu 2015-04-15 17:06:24 UTC
Actually, it doesn't seem like the 'down' action is executed at all. I'm guessing that means NetworkManager is just killed instead of letting it shutdown correctly.
Comment 2 David Edmundson 2015-04-15 17:11:34 UTC
That's a system service, we (Plasma) don't manipulate when they go up/down at all.

I'm afraid that's entirely the job of your init system (initd, systemd, upstart). Hope that helps.

Sorry.