This part of the file: case "$2" in up) nm-online -t 0 && exec rc-service NetworkManager start ;; down) nm-online -t 0 || exec rc-service NetworkManager stop ;; pre-sleep) exec rc-service NetworkManager stop ;; esac worked correctly in previous versions of NetworkManager (not 100% sure). However, something changed in between. The command 'nm-online -t 0' now hangs until a connection comes up. This imposes a problem when you shutdown your last connection (as recognized my nm-online). The following happens: * shutdown last connection * * NM runs scripts in /etc/NetworkManager/dispatcher.d/ * * hangs at 10-openrc-status * This causes other scripts not to run (or very late). 1: I use a hardened system, please see my emerge --info --verbose. 2: I also attached a strace of the 'hanging' nm-online.
Created attachment 312825 [details] Emerge info
Created attachment 312827 [details] Strace of nm-online hanging A possible fix is to change: nm-online -t 0 to nm-online -t 1 or any other integer > 0.
Should be fixed in networkmanager-0.9.4.0-r4 *** This bug has been marked as a duplicate of bug 410661 ***