How to get rid of the Network Manager errors at shut down

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
Husse

How to get rid of the Network Manager errors at shut down

Post by Husse »

This is a common problem. I've had it and seen that it can hit Ubuntu, Arch and Sabayon at least
When you shut down your computer there are lots of error messages from Network Manager, so many that it slows things down
There is probably some nice solution to this but I've only found a "dirty hack"
Edit by Husse
This hack does not work with Felicia as the file /etc/init.d/dhcdbd does not exist there. Another file running at shutdown must be used
End edit
Edit the file /etc/init.d/dhcdbd

Code: Select all

gksu gedit /etc/init.d/dhcdbd
A bit down you see
case "$1" in
The second case is
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
d_stop
log_end_msg $?
;;
Add

Code: Select all

killall NetworkManager # Dirty hack to avoid nasty error messages!
immediately below stop)
Nice clean shutdown after this and I can't see any dangerous side effects
knuckles

Re: How to get rid of the Network Manager errors at shut down

Post by knuckles »

thanks for the Tip, i had the same messages.

But i think with Felicia they will gone, because on Intrepit there is that Problem..
exploder
Level 15
Level 15
Posts: 5623
Joined: Tue Feb 13, 2007 10:50 am
Location: HartfordCity, Indiana USA

Re: How to get rid of the Network Manager errors at shut down

Post by exploder »

Thanks for the tip! If it works I might start making gdm themes again!

Edit: I tested this tip and it works great, no ill effects from applying this. Thanks!
Husse

Re: How to get rid of the Network Manager errors at shut down

Post by Husse »

@ exploder and all the rest :)
I also posted a solution for partly destroyed usplash when booting
http://www.linuxmint.com/forum/viewtopi ... 46&t=18591
NWAdawg

Re: How to get rid of the Network Manager errors at shut down

Post by NWAdawg »

Thanks for the tip Husse. It worked great
garda

Re: How to get rid of the Network Manager errors at shut down

Post by garda »

I've just found this post and would like to thank you for the tip. This dirty hack has made my computer's shutdown process look cleaner. :D
piratesmack

Re: How to get rid of the Network Manager errors at shut down

Post by piratesmack »

Thanks, Husse, I was wondering if there was a solution to that.
Husse

Re: How to get rid of the Network Manager errors at shut down

Post by Husse »

@ dickrog
This dirty hack does not work on Felicia I just discovered - the file used does not exist there
But do you really get these network manager errors when you shut down - I thought they were gone...
Husse

Re: How to get rid of the Network Manager errors at shut down

Post by Husse »

@ dickrog
We have to find another file that can be used. Let me think about it and come back to you
I don't want to use a file more or less at random....
Husse

Re: How to get rid of the Network Manager errors at shut down

Post by Husse »

Long delayed answer
I think you could add the line to /etc/init.d/halt

Code: Select all

gksu gedit /etc/init.d/halt
between fi and the line
# See if we need to cut the power.
Does not help at reboot I think
Husse

Re: How to get rid of the Network Manager errors at shut down

Post by Husse »

Yes - and instead of typing a typo :) (just kidding) you could use update-rc.d
Read man update-rc.d to know how (not the easiest read :))
Husse

Re: How to get rid of the Network Manager errors at shut down

Post by Husse »

You are absolutely right that it (probably) does not matter if it's called awm or nwm - it's a symbolic link
But they are normally called the same in both locations I believe (with the obvious exception for the K01)
Post Reply

Return to “Tutorials”