Re: /sbin/rc bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, May 3, 2011 at 10:58 PM, D. Can Celasun <dcelasun@xxxxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux