LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-29-2012, 07:27 PM   #1
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 159

Rep: Reputation: 21
Network init scripts


A couple of other threads got me thinking about this.

In rc.d there exist rc.inet1, rc.networkmanager, and (potentially) rc.wicd all of which in a broad sense do network interface stuff.

My question is, if a user is using, say rc.networkmanager, then presumably rc.wicd should be chmod 644 and vice versa. This appears to be borne out by the logic in rc.M.

However, when using either rc.networkmanager or rc.wicd, should/could rc.inet1 also be disabled?

Thanks,

Dave
 
Old 08-29-2012, 08:16 PM   #2
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 155

Rep: Reputation: 21
Quote:
Originally Posted by xflow7 View Post
My question is, if a user is using, say rc.networkmanager, then presumably rc.wicd should be chmod 644 and vice versa. This appears to be borne out by the logic in rc.M.
If you want to keep both installed, like I prefer wicd, but keep along NetworkManager because it simplifies VPN connection, then disable execution for the one you don't use regularly. Otherwise I'd suggest uninstalling the one you don't use.

Quote:
Originally Posted by xflow7 View Post
However, when using either rc.networkmanager or rc.wicd, should/could rc.inet1 also be disabled?

You definitely shouldn't. rc.inet1 activates network interfaces defined in /etc/rc.d/rc.inet1.conf and set default route (if defined in rc.inet1.conf). Unless you want to disable networking, don't disable this script.
 
Old 08-29-2012, 08:17 PM   #3
elvis4526
Member
 
Registered: Aug 2011
Posts: 114

Rep: Reputation: Disabled
Normally, NetworkManager and wicd do everything that rc.inet1 do, so yes, it can be disabled if you use networkmanager or wicd.
venn: Are you sure about that?
 
Old 08-29-2012, 11:03 PM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,373

Rep: Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087
@elvis4526: everything, but bringing up a loopback interface.

I can't say a word about NetworkManager which I didn't use yet, but for wicd there is no problem with rc.inet1 staying executable, provided that rc.inet1.conf stay or be brought back to its initial state, i.e. with no line uncommented in it.

Last edited by Didier Spaier; 08-29-2012 at 11:18 PM.
 
Old 08-30-2012, 12:43 AM   #5
mrascii
Member
 
Registered: Jun 2012
Location: on the Net
Distribution: Slackware
Posts: 100

Rep: Reputation: Disabled
I've not touched /etc/rc.d/rc.inet1 since I started using NetworkManager and everything works fine.

DNA
AKA mrascii
 
Old 08-30-2012, 06:18 AM   #6
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: 21
Thanks all for the responses.

I hadn't seen any problems having both rc.inet1 (with default rc.inet1.conf) and rc.networkmanager running. I was more just interested in what was considered best practice and/or if there was an opportunity to eliminate redundant execution at boot.

Interestingly, I've just experimented with disabling rc.inet1 (chmod 644) and my loopback device still appears to get set up at boot:

Code:
drw1@rosberg:/etc/rc.d$ /sbin/ifconfig lo
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 16  bytes 1152 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 1152 (1.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
In any case, marking this one as SOLVED
 
Old 08-30-2012, 09:36 AM   #7
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 155

Rep: Reputation: 21
Quote:
Originally Posted by elvis4526 View Post
venn: Are you sure about that?
Well, now I'm sure that what I wrote isn't correct. What I meant was rc.inet1 brings up network interfaces (if defined or use DHCP) and rc.wicd or rc.networkmanager only starts it's deamons. Which in fact brings up network interaces, even if these scripts don't do the same, result is the same.

My guess is network interfaces are added by udev, at least these listed in /etc/udev/rules.d/70-persistent-net.rules. I'm not sure what brings loopback up. So, yes it's possible to disable rc.inet1, but if you use DHCP I think rc.inet1 subjectively speeds booting up to "everything-is-loaded-and-ready" state, because network connection is set up during boot before Xorg starts.

I made a fool of myself, but at least I learnt something

Last edited by yenn; 08-30-2012 at 09:37 AM. Reason: typo correction
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to monitor init scripts in /etc/init.d/ in rhel 5 me_spearhead Red Hat 2 02-09-2011 10:41 PM
Diffrence /etc/init.d and /etc/init.d/rc?.d scripts veeruhs Linux - Server 3 07-29-2010 04:42 AM
[SOLVED] /etc/init.d network dependent scripts running/failing at boot [on ubuntu server] pimanlives Linux - Newbie 5 03-15-2010 07:59 PM
[SOLVED] init scripts, variables in INIT INFO section catkin Linux - General 1 08-18-2009 02:02 PM
network bridge / bond - slackware network init scripts Slax-Dude Slackware 1 07-17-2009 06:56 AM


All times are GMT -5. The time now is 02:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration