Httpd restart "Address already in use" error
Posted
by
mtndesign
on Server Fault
See other posts from Server Fault
or by mtndesign
Published on 2012-12-15T13:02:35Z
Indexed on
2012/12/15
17:05 UTC
Read the original article
Hit count: 376
I have an .rpm, which I created. In its %post
part, I do some stuff, and in the end of this script, i call service httpd restart
. It gives the following error:
+ service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:81
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shutting down
Unable to open logs
[FAILED]
I got this from the rpm verbose installing (-vv). So I know its about httpd restart itself, nothing else. The according to netstat only one process (httpd) is listening on port 81.
$ sudo netstat -nlp | grep 81
tcp 0 0 :::81 :::* LISTEN 29670/httpd
I don't understand, why running http FAILS at stop, and FAILS again in start.
Any ideas how to solve this?
© Server Fault or respective owner