Apache predefined script in redhat-cluster-suite is not properly setup for Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redhat-cluster-suite (Ubuntu) |
Invalid
|
Medium
|
Ante Karamatić |
Bug Description
Background:
I tried to setup the apache server using redhat-
Symptom:
Once the apache service started from the redhat-
The log message (/var/log/syslog) looks like the following:
Jul 22 10:26:20 c3 clurgmgrd[6529]: <notice> Service service:Apache2 started
Jul 22 10:26:24 c3 clurgmgrd: [6529]: <err> script:Web Services: status of /etc/init.d/apache2 failed (returned 1)
Jul 22 10:26:24 c3 clurgmgrd[6529]: <notice> status on script "Web Services" returned 1 (generic error)
Jul 22 10:26:24 c3 clurgmgrd[6529]: <notice> Stopping service service:Apache2
Jul 22 10:26:24 c3 clurgmgrd[6529]: <notice> Service service:Apache2 is recovering
Jul 22 10:26:24 c3 clurgmgrd[6529]: <notice> Recovering failed service service:Apache2
Jul 22 10:26:24 c3 clurgmgrd[6529]: <notice> Service service:Apache2 started
What I have tried:
I looked at the /usr/share/
declare APACHE_
In Ubuntu, that file (httpd.conf) is empty. I changed that to apache2.conf, but still have the same issue.
Also, in the same file at line 142 where it says:
for i in `"$APACHE_
This refer to another file which will need some fixes too.
Hope this helps,
Changed in redhat-cluster-suite: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → ivoks |
The thing is that there is no 'status' function in Ubuntu's apache init script. Simply (and falsely) adding this to /etc/init. d/apache2:
status)
log_success_ msg "Running"
log_end_ msg 0
;;
would solve the issue. Of course, that's only proof of concept, not a bug fix.
This problem (non-existing status function in init scripts) is tackled by server team and community for intrepid. More info:
https:/ /wiki.ubuntu. com/InitScriptS tatusActions