Summary: | [tracker] services misusing "need net" | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | William Hubbs <williamh> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | alexanderyt, andreis.vinogradovs, asm64, bugzilla, jdavid.ibp, luke, michael.stahn.42, nikoli, sam, xmw |
Priority: | Normal | Keywords: | Tracker |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/OpenRC/openrc/blob/master/service-script-guide.md#be-wary-of-need-net-dependencies | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 447996, 514858, 228973, 266386, 439100, 439564, 439568, 439572, 439652, 439654, 439656, 439658, 439660, 439662, 439664, 447630, 482092, 484658, 490446, 514860, 514872, 520294, 525412, 530828, 542162 | ||
Bug Blocks: | |||
Attachments: | sshd init script |
Description
William Hubbs
2012-10-20 18:48:35 UTC
To test your service to see if it really needs net, do the following: - bring down *all* of your network interfaces, including loopback. - drop the "need net" line from your init script. - bring up your service in its default configuration. - If it comes up successfully, try cycling network interfaces and using your service with different interfaces up and down. If it works, you are done; commit your init script without the "need net" dependency. - If it doesn't work, you will need to add documentation to your conf.d/service file explaining to users how to tie your service to which ever interface they are using it on with an rc_need line. Feel free to contact me with questions. Flameeyes wrote the following blog post concerning this issue: http://blog.flameeyes.eu/2012/10/may-i-have-a-network-connection-please *** Bug 444260 has been marked as a duplicate of this bug. *** Please see https://bugs.gentoo.org/show_bug.cgi?id=444652 and let me know if it's related. Thanks. *** Bug 447156 has been marked as a duplicate of this bug. *** /etc/init.d/netmount is triggering NetworkManager (+dbus +....) to start without any "need net". Looks like a hidden "need net" in some dependency. Created attachment 343152 [details]
sshd init script
sshd does not need "need net"
*** Bug 268688 has been marked as a duplicate of this bug. *** |