Httpd restart "Address already in use" error
- by mtndesign
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?