Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268688 - servers die if Ethernet interfaces are shut down
Summary: servers die if Ethernet interfaces are shut down
Status: RESOLVED DUPLICATE of bug 439092
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-05 02:16 UTC by Christopher Smith
Modified: 2015-06-11 16:23 UTC (History)
1 user (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 Christopher Smith 2009-05-05 02:16:10 UTC
(Similar to #266386, but different resolution suggested.)

Various server init scripts (including, e.g., sshd and apache2) list "need net", meaning that if all Ethernet interfaces go down, the servers are killed--and even worse, the services are not restarted when the interfaces come back up.  For most of these packages, there is absolutely no need for an external network interface for them to work properly; net.lo is thoroughly sufficient.  This is especially problematic on laptops, where network interfaces may come up and down frequently but users want to run a development Web server or SSH.

Reproducible: Always

Steps to Reproduce:
1. start any server listing "need net"
2. shut down all net.eth? services
3. restart net.eth? services
Actual Results:  
Servers are killed off and not restarted.

Expected Results:  
Servers should not be killed, or at least those that are listed in the current runlevel should be restarted.

For most of these packages, "need net" makes no sense.  "use net" would have the desired effect of bringing up networking first and would keep the servers from being shut down unnecessarily.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-08 21:06:14 UTC
Apps that bind to specific IP addresses on start do possibly need to be restarted with network interface up/down flips that involve IP changes.
Comment 2 Alex Xu (Hello71) 2015-06-11 16:23:45 UTC

*** This bug has been marked as a duplicate of bug 439092 ***