Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetworkManagar prevents ntp-client from running.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1231
Location: Sweden

PostPosted: Thu Aug 09, 2012 7:31 am    Post subject: NetworkManagar prevents ntp-client from running. Reply with quote

Real issue:

Code:
# /etc/init.d/ntp-client restart
 * Bringing up interface eth1
 *   No configuration specified; defaulting to DHCP
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[16262]: dhcpcd already running on pid 5094 (/var/run/dhcpcd-eth1.pid)                                         [ !! ]
 * ERROR: net.eth1 failed to start
 * ERROR: cannot start ntp-client as net.eth1 would not start


My quick attempt at doing something about it:
Code:
~ # /etc/init.d/net.eth1 restart
 * Bringing up interface eth1
 *   No configuration specified; defaulting to DHCP
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[16895]: dhcpcd already running on pid 5094 (/var/run/dhcpcd-eth1.pid)                                          [ !! ]
 * ERROR: net.eth1 failed to start
~ # killall dhcpcd && /etc/init.d/net.eth1 restart
 * Bringing up interface eth1
 *   No configuration specified; defaulting to DHCP
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[17089]: version 5.5.3 starting
dhcpcd[17089]: eth1: sending IPv6 Router Solicitation
dhcpcd[17089]: eth1: rebinding lease of 192.168.0.104
dhcpcd[17089]: eth1: acknowledged 192.168.0.104 from 192.168.0.1
dhcpcd[17089]: eth1: checking for 192.168.0.104
dhcpcd[17089]: received SIGTERM, stopping
dhcpcd[17089]: eth1: removing interface                                                                               [ !! ]
 * ERROR: net.eth1 failed to start
~ # /etc/init.d/net.eth1 restart
 * Bringing up interface eth1
 *   No configuration specified; defaulting to DHCP
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[17261]: dhcpcd already running on pid 17152 (/var/run/dhcpcd-eth1.pid)                                    [ !! ]
 * ERROR: net.eth1 failed to start


Edit: I have NetworkManager running in the background, which is probably what's messing with the net init-script.

NM doesn't provide "net", so I can run ntp-client?
Back to top
View user's profile Send private message
gerdesj
Guru
Guru


Joined: 29 Sep 2005
Posts: 552
Location: Yeovil, Somerset, UK

PostPosted: Sun Aug 26, 2012 9:55 pm    Post subject: Re: NetworkManagar prevents ntp-client from running. Reply with quote

Quote:
NM doesn't provide "net", so I can run ntp-client?


Are you sure:

Code:
cat /etc/NetworkManager/dispatcher.d/10-openrc-status


I run systemd on my laptop so can't really comment but it seems the devs have Gentooified NM.

Sorry this isn't too much help on your actual problem but I think the fault is elsewhere for you.

Cheers
Jon[/quote]
Back to top
View user's profile Send private message
Ahenobarbi
Developer
Developer


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Mon Aug 27, 2012 8:00 am    Post subject: Reply with quote

If you use NetworkManager you should let it manage network interfaces. Add

Code:
rc_hotplug="!net.*"


to your /etc/rc.conf and check if it helped.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum