Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th November 2012, 07:18 AM
limasxgoesto0 Offline
Registered User
 
Join Date: Nov 2012
Location: San Fransisco
Posts: 4
linuxchrome
NetworkManager doesn't start automatically on boot

My network manager recently stopped launching on boot and I couldn't even connect with ethernet. After digging around I found I can fix this at the terminal by putting in:

sudo systemctl restart NetworkManager.service

However, I have to keep doing this each time I restart, and it's annoying to have to keep doing that. Is there any way to fix this? I also tried putting the above command in gnome-session-properties to try to run it on boot with no success.
Reply With Quote
  #2  
Old 6th November 2012, 03:10 PM
boydrice's Avatar
boydrice Offline
Registered User
 
Join Date: Jan 2009
Posts: 71
windows_7chrome
Re: NetworkManager doesn't start automatically on boot

Hi please check this page http://fedoraproject.org/wiki/Systemd

To enable a service to be started on boot:
systemctl enable foo.service
Reply With Quote
  #3  
Old 8th November 2012, 01:10 AM
limasxgoesto0 Offline
Registered User
 
Join Date: Nov 2012
Location: San Fransisco
Posts: 4
linuxchrome
Re: NetworkManager doesn't start automatically on boot

Sorry for not getting back to you sooner

So I tried running sudo systemctl enable NetworkManager.service at the terminal, and it actually didn't even let me auto-complete that so it doesn't seem to be a valid option. It did auto-complete to NetworkManager-wait-online.service, and I'm not sure if that will do anything.

I tried running it before and after restarting NetworkManager.service and nothing came up.

If I can even just find a way to run systemctl restart NetworkManager.service at bootup (because apparently inputting that to gnome-session-properties doesn't work) or just any temporary solution become permanent, that'd be a great improvement.
Reply With Quote
  #4  
Old 15th November 2012, 05:56 PM
alexeik Offline
Registered User
 
Join Date: Feb 2011
Location: Moscow, Russia
Posts: 90
linuxfirefox
Re: NetworkManager doesn't start automatically on boot

I also have this issue. I have Fedora 16 installed:

[alexei@localhost ~]$ uname -a
Linux localhost.localdomain 3.6.6-1.fc16.x86_64 #1 SMP Mon Nov 5 16:56:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

I solveed it (temp) by running a script when I first log in into my user:
"
systemctl |grep NetworkManager
sudo systemctl restart NetworkManager.service
systemctl |grep NetworkManager
"
It responds:

[alexei@localhost ~]$ ./ff.sh
NetworkManager.service loaded active running Network Manager
[sudo] password for alexei:
NetworkManager.service loaded active running Network Manager

last time i did the following:

1. I login to user
2. wait for a while
3. insert a wifi usb dongle
4. wait for a while
5. run this ff.sh script

Then I collected dmesg and did a timing:

93.416713 - before point 3
209.798343 - before point 5
and the rest

Maybe it helps to diagnose the issue.

Meanwhile I have workaround - I run that ff.sh script.
Attached Files
File Type: txt zzzz.txt (75.3 KB, 33 views)
Reply With Quote
  #5  
Old 15th November 2012, 07:37 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: NetworkManager doesn't start automatically on boot

Quote:
Originally Posted by limasxgoesto0 View Post
Sorry for not getting back to you sooner

So I tried running sudo systemctl enable NetworkManager.service at the terminal, and it actually didn't even let me auto-complete that so it doesn't seem to be a valid option. It did auto-complete to NetworkManager-wait-online.service, and I'm not sure if that will do anything.

I tried running it before and after restarting NetworkManager.service and nothing came up.

If I can even just find a way to run systemctl restart NetworkManager.service at bootup (because apparently inputting that to gnome-session-properties doesn't work) or just any temporary solution become permanent, that'd be a great improvement.
I've noticed recently that systemctl will not auto-complete some commands which are correct and valid commands. I'm not sure why autocomplete doesn't work for it but I can assure you that this is command below is correct and needs to be run for your NetworkManager to run at boot:
Quote:
systemctl enable NetworkManager.service
go ahead and run it, then try running status:
Quote:
systemctl status NetworkManager.service
if that worked, you should see something similar to this (note the bolded "enabled", the effect of running "enable" should make "enabled" show in the status output, note I substituted some # signs where
you will have different digits than me for pids):
Quote:
NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled)
Active: active (running) since Thu, 15 Nov 2012 12:12:36 -0500; 0h 01min ago
Main PID: ### (NetworkManager)
CGroup: name=systemd:/system/NetworkManager.service
├ ### /usr/sbin/NetworkManager --no-daemon
└ ### /sbin/dhclient -d -4 -sf /usr/libexec/nm-dhcp-client.action -pf /var/run/dhclient-wlan0.pid -lf /var/lib/dhclient/dhclient-59...

Last edited by marko; 15th November 2012 at 07:39 PM.
Reply With Quote
  #6  
Old 21st November 2012, 08:42 PM
limasxgoesto0 Offline
Registered User
 
Join Date: Nov 2012
Location: San Fransisco
Posts: 4
linuxchrome
Re: NetworkManager doesn't start automatically on boot

...I forgot about this again. I apologize to everyone who was waiting for feedback.



Quote:
Originally Posted by alexeik View Post
I also have this issue. I have Fedora 16 installed:

[alexei@localhost ~]$ uname -a
Linux localhost.localdomain 3.6.6-1.fc16.x86_64 #1 SMP Mon Nov 5 16:56:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

I solveed it (temp) by running a script when I first log in into my user:
"
systemctl |grep NetworkManager
sudo systemctl restart NetworkManager.service
systemctl |grep NetworkManager
"
It responds:

[alexei@localhost ~]$ ./ff.sh
NetworkManager.service loaded active running Network Manager
[sudo] password for alexei:
NetworkManager.service loaded active running Network Manager

last time i did the following:

1. I login to user
2. wait for a while
3. insert a wifi usb dongle
4. wait for a while
5. run this ff.sh script

Then I collected dmesg and did a timing:

93.416713 - before point 3
209.798343 - before point 5
and the rest

Maybe it helps to diagnose the issue.

Meanwhile I have workaround - I run that ff.sh script.

Sorry, what is the ff.sh script? If it's in a USB Wifi stick, I don't have one.

Running systemctl |grep NetworkManager before and after restarting NetworkManager.service gives me this:

NetworkManager.service loaded active running Network Manager


So, it's running even before restarting, I just don't see the icon that lets me connect to different connections until I restart.

Quote:
Originally Posted by marko View Post
I've noticed recently that systemctl will not auto-complete some commands which are correct and valid commands. I'm not sure why autocomplete doesn't work for it but I can assure you that this is command below is correct and needs to be run for your NetworkManager to run at boot:
go ahead and run it, then try running status:
if that worked, you should see something similar to this (note the bolded "enabled", the effect of running "enable" should make "enabled" show in the status output, note I substituted some # signs where
you will have different digits than me for pids):
I ran systemctl enable, and on bootup I see this before running restart:

Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
Active: active (running) since Wed, 21 Nov 2012 12:34:20 -0800; 1min 10s ago
Main PID: 1030 (NetworkManager)
CGroup: name=systemd:/system/NetworkManager.service
├ 1030 /usr/sbin/NetworkManager --no-daemon
└ 1508 /sbin/dhclient -d -4 -sf /usr/libexec/nm-dhcp-clie...

which seems consistent with what you provided. I think the process is starting but I just don't see the icon.
Reply With Quote
  #7  
Old 22nd November 2012, 06:39 PM
alexeik Offline
Registered User
 
Join Date: Feb 2011
Location: Moscow, Russia
Posts: 90
linuxfirefox
Re: NetworkManager doesn't start automatically on boot

Sorry, I was not clear enough 8(
>cat ff.sh

systemctl |grep NetworkManager
sudo systemctl restart NetworkManager.service
systemctl |grep NetworkManager

>
Reply With Quote
  #8  
Old 22nd November 2012, 07:04 PM
limasxgoesto0 Offline
Registered User
 
Join Date: Nov 2012
Location: San Fransisco
Posts: 4
linuxchrome
Re: NetworkManager doesn't start automatically on boot

Ah, that's what you meant.

Yeah I've been running the restart service command at each bootup, I'm just hoping to find something more permanent.
Reply With Quote
  #9  
Old 22nd November 2012, 07:21 PM
alexeik Offline
Registered User
 
Join Date: Feb 2011
Location: Moscow, Russia
Posts: 90
linuxfirefox
Re: NetworkManager doesn't start automatically on boot

The strange thing is that if I do not run that script, I still have an access to internet. And everything looks almost OK. But if I want to do "Software update" - I have nothing. "Software update" does not work without this script.
Reply With Quote
Reply

Tags
automatically, boot, networkmanager, start, systemctl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nmb.service doesn't start automatically on boot yoyolala Using Fedora 7 1st October 2012 08:44 PM
How to start sshd automatically on boot up BigTummyGuy Using Fedora 7 6th December 2009 02:51 PM
network does not start automatically at boot up simpleashwin Servers & Networking 3 30th July 2007 01:57 PM
x server does not start automatically on boot anafshalom Installation and Live Media 6 1st July 2007 05:29 AM
How to set VNC server to start automatically after boot? orbknives Using Fedora 2 24th March 2005 03:31 AM


Current GMT-time: 04:21 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat