restarting network-manager

August 17, 2013

When you boot up your computer, there are a lot of programs running behind the scenes that start up to govern all sorts of background processes.  Most of these aren’t “programs” that you can open and close, so when something goes wrong with one of them, it’s not as simple as clicking a button to close or restart the service.  These, one of the most vital on a Linux system is network-manager.  This is the service that controls your network connections and gives you a graphical interface to select wireless networks, enter passwords for secured networks, etc.

The other day my network-manager suddenly stopped working.  While I do a lot of networking stuff from the command line, I almost always use the GUI for connecting to and disconnecting from wireless networks.  This time, clicking on “Disconnect” or “Connection information” didn’t do anything.  Luckily, it’s easy to restart the network-manager service if it stops responding for any reason:

Open the terminal and type “sudo service restart network-manager”

It’s as simple as that.  This is also the syntax for restarting most any misbehaving service or program.