LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 9 shuts down network before CIFS unmount (https://www.linuxquestions.org/questions/fedora-35/fedora-9-shuts-down-network-before-cifs-unmount-649736/)

saravkrish 06-16-2008 05:23 PM

Fedora 9 shuts down network before CIFS unmount
 
Hi,

I have a NAS and I mount it using Samba/CIFS. During shutdown, the PC kept hanging at the "unmount CIFS part". Initially I thought it was a problem with the NAS. Then noticed that NetworkManager was shutting down the network before the CIFS unmount has a chance to run. If I disable NetworkManager and use the older "network" service, then there is no problem during shutdown.

I want to use NetworkManager though (I really need it).

Any idea how I could reorder the shutdown sequence of the services in a way that won't get screwed up every time I update the packages? Please help me.

Thanks,
Sarav

shafty023 06-17-2008 06:01 PM

Why don't you add a kill script in /etc/rc5.d/ and number it so it runs before the network manager kill script?
Look at any of the other kill scripts for an example of how to write your own. The kill scripts are the ones with a "K" as the first letter.
The ones with a "S" are startup scripts. Or you could, which I wouldn't recommend, edit the current network manager kill script and place the unmount right before it runs the stop command on network manager


All times are GMT -5. The time now is 06:55 AM.