[arch-general] /sbin/rc bug?

Seblu seblu at seblu.net
Tue May 3 18:34:55 EDT 2011


On Tue, May 3, 2011 at 10:58 PM, D. Can Celasun <dcelasun at gmail.com> wrote:
> I might have discovered a bug with this new /sbin/rc thing.
>
> If I run "/etc/rc.d/httpd start", Apache starts just fine. Yet if I do "rc
> start httpd" it fails with:
>
> :: Starting Apache Web
> Server
>
> [BUSY] (13)Permission denied: make_sock: could not bind to address [::]:80
> (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> Unable to open logs
> [FAIL]
>
> So, bug?
>
You start http twice. The seconds time, httpd is running and new httpd
cannot bind on socket! It's not a bug of /sbin/rc.

In this release, /sbin/rc just call /etc/rc.d/script.

It's a bug in apache rc script which doesn't check is httpd is already running.

you can easily check by running twice /etc/rc.d/httpd start.

Regards,
-- 
Sébastien Luttringer
www.seblu.net


More information about the arch-general mailing list