Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220875 - Openrc and RC_DOWN_INTERFACE
Summary: Openrc and RC_DOWN_INTERFACE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 08:44 UTC by WladyX
Modified: 2008-10-07 16:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WladyX 2008-05-08 08:44:19 UTC
Will openrc support RC_DOWN_INTERFACE again?
Thanks.

Reproducible: Always
Comment 1 Roy Marples 2008-05-09 10:31:32 UTC
I've added a patch to OpenRC git repo that allows ifdown_eth0=NO to stop the interface from being downed.

sysvinit will need a patch to stop doing this by default OR make it toggleable somehow. Looking at the BSD's, their halt procedures don't actually touch the interface and as the init scripts do, it's probably safe just to remove the -i option.
Comment 2 Anton Bolshakov 2008-06-21 00:57:59 UTC
Looks like this is long term bug, but I need to be able to reboot my guest vserver today.
What would be a quick fix for it?..
Currently, it fails with the follow message:

bash# reboot
WARNING: could not determine runlevel - doing soft reboot
  (it's better to use shutdown instead of reboot from the command line)

Broadcast message from root (pts/2) (Sat Jun 21 08:56:07 2008):

The system is going down for reboot NOW!
shutdown: /dev/initctl: No such file or directory
init: /dev/initctl: No such file or directory
Comment 3 Roy Marples 2008-07-09 20:52:00 UTC
I don't see what that has todo with this bug.
Also, you should not use reboot directly - instead use shutdown

shutdown -r now

Is what you want.
Comment 4 Anton Bolshakov 2008-07-09 23:26:42 UTC
(In reply to comment #3)
> shutdown -r now
> Is what you want.

No, still doesn't work. I filed a separate bug #231362 report
Thank you.
Comment 5 Matthew Schultz 2008-07-15 14:54:56 UTC
(In reply to comment #1)
> I've added a patch to OpenRC git repo that allows ifdown_eth0=NO to stop the
> interface from being downed.
> 
> sysvinit will need a patch to stop doing this by default OR make it toggleable
> somehow. Looking at the BSD's, their halt procedures don't actually touch the
> interface and as the init scripts do, it's probably safe just to remove the -i
> option.
> 

Will this feature be included in the next openrc release?
Comment 6 Roy Marples 2008-07-15 15:08:33 UTC
It's already in OpenRC-0.2.5, which is in portage
Comment 7 WladyX 2008-07-15 15:42:28 UTC
(In reply to comment #6)
> It's already in OpenRC-0.2.5, which is in portage
> 

so if I put ifdown_eth0=NO in /etc/rc.conf it will work?
Comment 8 Roy Marples 2008-07-15 15:51:00 UTC
From OpenRC's perspective, yes.
sysvinit may down the interface though - that may still need a patch.
Comment 9 WladyX 2008-07-15 16:05:42 UTC
So this bug will stay open until sysvinit is patched?
Thanks for the reply.
Comment 10 Matthew Schultz 2008-07-15 16:33:41 UTC
(In reply to comment #6)
> It's already in OpenRC-0.2.5, which is in portage
> 

Oh.  I didn't notice it had moved to /etc/conf.d/net.  Thanks.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2008-10-07 15:28:13 UTC
Fixed in 0.3.0.
Comment 12 Matthew Schultz 2008-10-07 16:32:00 UTC
(In reply to comment #11)
> Fixed in 0.3.0.
> 

Just upgraded to 0.3.0 but it didn't update /etc/rc.conf.  Is it still called rc_down_interface?  Also why wasn't it added when I upgraded?
Comment 13 Matthew Schultz 2008-10-07 16:32:42 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Fixed in 0.3.0.
> > 
> 
> Just upgraded to 0.3.0 but it didn't update /etc/rc.conf.  Is it still called
> rc_down_interface?  Also why wasn't it added when I upgraded?
> 

Rather it did update the file but it did not add the rc_down_interface variable.
Comment 14 Matthew Schultz 2008-10-07 16:38:44 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > Fixed in 0.3.0.
> > > 
> > 
> > Just upgraded to 0.3.0 but it didn't update /etc/rc.conf.  Is it still called
> > rc_down_interface?  Also why wasn't it added when I upgraded?
> > 
> 
> Rather it did update the file but it did not add the rc_down_interface
> variable.
> 

Sorry, wasn't paying a attention.  Why isn't ifdown_eth0=NO added as an option to /etc/rc.conf?
Comment 15 Matthew Schultz 2008-10-07 16:40:46 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > (In reply to comment #11)
> > > > Fixed in 0.3.0.
> > > > 
> > > 
> > > Just upgraded to 0.3.0 but it didn't update /etc/rc.conf.  Is it still called
> > > rc_down_interface?  Also why wasn't it added when I upgraded?
> > > 
> > 
> > Rather it did update the file but it did not add the rc_down_interface
> > variable.
> > 
> 
> Sorry, wasn't paying a attention.  Why isn't ifdown_eth0=NO added as an option
> to /etc/rc.conf?
> 

NM, sorry for the useless posts since this was moved to /etc/conf.d/net.