Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 659890

Summary: nginx service for local programming
Product: Gentoo Linux Reporter: David Carlos Manuelda <StormByte>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 :)