Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659890 - nginx service for local programming
Summary: nginx service for local programming
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-02 18:14 UTC by David Carlos Manuelda
Modified: 2018-07-02 18:39 UTC (History)
0 users

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 David Carlos Manuelda 2018-07-02 18:14:07 UTC
While nginx is mainly used to serve web content for the outside, it can also be used as a gateway to serve local content (with PHP, with other local balancing) which does not depend on any network different than local to be enabled.

Currently, nginx won't start until net is started, being NetworkManager in my case, of being whatever.

It is possibly caused by init.d:

```
depend() {
	need net
	use dns logger netmount
}
```

Is it possible to have it working in local only environments also? I mean, without modifying local init.d file.

Thanks.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-07-02 18:23:11 UTC
You can configure this yourself in either /etc/conf.d/nginx as rc_need="!net loopback" or in /etc/rc.conf as rc_nginx_need="!net loopback".

The init script covers the most common use case.  Others can be changed as documented.
Comment 2 David Carlos Manuelda 2018-07-02 18:39:47 UTC
Ooops, I feel embarased now, I apologize. Thanks for the response anyway :)