Mailing List Archive

nginx init script dependencies
Hello,

I'm new to this mailing list, so greetings to everyone!

I am having some trouble starting nginx while some of the network interfaces
are down. Running "/etc/init.d/nginx ineed" gives me

fsck localmount dhcpcd net.eth0 net.eth1 net.lo

I guess this means that all the net.* interfaces have to be up for nginx to
start. Wouldn't it be more logical to require only one (like the loopback
interface) to be up? The problem is that if I stop net.eth1 and start nginx
it tries to start net.eth1, which I'd rather it did not do. Is there any way
to avoid this? Thank you!

Best regards,
Giedrius Kudelis
Re: nginx init script dependencies [ In reply to ]
on 07/20/2011 09:32 PM Giedrius Kudelis wrote the following:
> Hello,
>
> I'm new to this mailing list, so greetings to everyone!
>
> I am having some trouble starting nginx while some of the network interfaces
> are down. Running "/etc/init.d/nginx ineed" gives me
>
> fsck localmount dhcpcd net.eth0 net.eth1 net.lo
>
> I guess this means that all the net.* interfaces have to be up for nginx to
> start. Wouldn't it be more logical to require only one (like the loopback
> interface) to be up? The problem is that if I stop net.eth1 and start nginx
> it tries to start net.eth1, which I'd rather it did not do. Is there any way
> to avoid this? Thank you!
>
> Best regards,
> Giedrius Kudelis
>
>
>

set rc_depend_strict="NO" in /etc/rc.conf
Re: nginx init script dependencies [ In reply to ]
Hi,

Thanks very much, that works!

Best regards,
Giedrius Kudelis