Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425224 - net-ftp/vsftpd-3.0.0: "need net" means vsftpd's init.d script will not run when networkmanager has not established a connection
Summary: net-ftp/vsftpd-3.0.0: "need net" means vsftpd's init.d script will not run wh...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo's FTP Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-08 08:46 UTC by dE
Modified: 2012-11-01 05:30 UTC (History)
5 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 dE 2012-07-08 08:46:23 UTC
Either it be vsftpd, sshd or anything, if NM script is stopped the following messsages will pop up and the service wont start -- 

WARNING: xxxx is scheduled to start when NetworkManager has started

Where xxxx is the name of the service.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-08 13:45:21 UTC
Unfortunately, the bug report is unclear.

First, please update to networkmanager-0.9.4.0-r4, make sure to merge in the changes in /etc/NetworkManager/dispatcher.d/10-openrc-status, and do /etc/init.d/NetworkManager restart. (This is because 0.9.4.0-r4 fixes several important bugs present in 0.9.4.0-r2.)

Second, please precisely describe what steps you are performing, what happens, and what you expect to happen.
Comment 2 dE 2012-07-09 05:06:04 UTC
Upgrading is going to take some time.

Suppose, networkmanager has been stopped and I want to start vsftpd via init scripts -- 

/etc/init.d/vsftpd start

Then, this network service will not start stating -- 

WARNING: vsftpd is scheduled to start when NetworkManager has started.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-09 07:18:04 UTC
(In reply to comment #2)

Thanks for clarifying the issue.

See http://archives.gentoo.org/gentoo-dev/msg_ab161abd642de7d1b8efa69cf9cd46c3.xml for the conclusion of a long discussion about this on the gentoo-dev mailing list.

OpenRC services that require a non-loopback network interface, for example because they need to connect to a remote machine, should have "need net" or "use net" in their init.d scripts. Such services will be run only when a network connection is established (i.e. only when a net-providing OpenRC service is marked as "started"), whether by networkmanager, /etc/init.d/net.*, or whatever other mechanism.

OpenRC services that only need a loopback interface, for example because they listen on a local port and run fine whether or not any non-loopback connections had been established, should only have "need lo" or "use lo", not "net".

If it makes sense to be able to run vsftpd when no network connections are available, then /etc/init.d/vsftpd should have "need lo" instead of "need net" in its depend() function.

I am therefore reassigning the bug to vsftpd maintainers.
Comment 4 dE 2012-07-09 10:07:38 UTC
As far as I remember, when I started net.eth0/eth1, then also this message (WARNING: xxxx is scheduled to start when NetworkManager has started) was persistent.
Comment 5 Johan Bergström 2012-09-25 21:44:34 UTC
Does it really make sense to run a ftp server on loopback? Having a hard time buying that argument.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-10-27 00:33:34 UTC
(In reply to comment #5)
> Does it really make sense to run a ftp server on loopback? Having a hard
> time buying that argument.

Yeah agreed. Closing as WONTFIX
Comment 7 dE 2012-11-01 02:27:32 UTC
Unfortunately I didn't find an 'unconfirmed' status.

vsftp (or in that case any network service) specifically needs networkmanager on my system, i.e. starting net.* (eth1 for e.g.) is not enough.

This essentially means, I need a graphical environment to run a networkmanager client in order to start a network service.
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-11-01 05:30:36 UTC
(In reply to comment #7)
> Unfortunately I didn't find an 'unconfirmed' status.
> 
> vsftp (or in that case any network service) specifically needs
> networkmanager on my system, i.e. starting net.* (eth1 for e.g.) is not
> enough.
> 
> This essentially means, I need a graphical environment to run a
> networkmanager client in order to start a network service.

There is an implicit assumption that if you installed networkmanager, it's because you wanted to use it :) However, if you installed networkmanager but do not want openrc to use it as a network provider, simply add

rc_provide="!net"

to /etc/conf.d/NetworkManager.

That will force openrc to use whatever other network providers you have configured (for example, /etc/init.d/net.*) when starting vsftpd and other network services.

And if for some reason you want to start vsftpd even when no network providers are enabled, you can add

rc_need="!net"

to /etc/conf.d/vsftpd