mini_httpd is not started correctly by openrc
On a fresh installation of Alpine 1.9 Alpha15, after boot up, rc-status reports that mini_httpd is stopped. When trying to start mini_httpd with /etc/init.d/mini_httpd start, the following is returned in /var/log/messages:
daemon.crit mini_httpd: bind :: - Address already in use
daemon.crit mini_httpd: bind 0.0.0.0 - Address already in use
daemon.crit mini_httpd: can’t bind to any address
daemon.err /etc/init.d/mini_httpd: ERROR: mini_httpd failed to start
/etc/mini_httpd is configured with port=443
netstat -n -l -p | grep 443 reports that only mini_httpd is on port 443.
ps | grep mini_httpd returns only 1 running instance of mini_httpd
rc-status reports mini_httpd status as stopped.
Running killall mini_httpd and then starting mini_httpd with /etc/init.d/mini_httpd start allows the service to start successfully.
So it appears as if openrc believes that mini_httpd has not started, while it actually running.
(from redmine: issue id 57, created on 2009-06-29, closed on 2009-08-19)
- Revision b6b6ef01 on 2009-07-03T07:10:03Z:
extra/mini_httpd: openrc fixes. add support for multiple instances fixes #57