https://bugzilla.novell.com/show_bug.cgi?id=838871 https://bugzilla.novell.com/show_bug.cgi?id=838871#c13 Tim Serong <tserong@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|kgronlund@suse.com | Resolution| |FIXED --- Comment #13 from Tim Serong <tserong@suse.com> 2013-09-11 13:19:27 UTC --- Irritatingly, it works fine for me :-/ So the PidFile business is as follows, looking at the RA source on my test VM: - If there's no PidFile in your apache config, the parser in apache-conf.sh notices, deliberately sets PidFile=$HA_VARRUNDIR/${httpd_basename}.pid (which becomes /var/run//httpd2.pid), and sets PIDFILE_DIRECTIVE="true" - Later, the RA checks if $PIDFILE_DIRECTIVE is set (as it will be from the above) and starts apache with: ocf_run $HTTPD $HTTPDOPTS $OPTIONS -f $CONFIGFILE -c "PidFile $PidFile" Looking at your RA traces, I can see it setting PidFile=/var/run//httpd2.pid, but I *can't* see any mention of PIDFILE_DIRECTIVE being either set or checked, anywhere: + 08:02:40: GetParams:139: case $PidFile in + 08:02:40: GetParams:142: PidFile=/var/run//httpd2.pid + 08:02:40: GetParams:145: for p in '"$PORT"' '"$Port"' 80 + 08:02:40: GetParams:146: CheckPort '' .. + 08:02:40: apache_start:175: '[' -d /var/run/apache2 ']' + 08:02:40: apache_start:175: mkdir /var/run/apache2 + 08:02:40: apache_start:176: ocf_run /usr/sbin/httpd2 -DSTATUS -f /etc/apache2/httpd.conf Whereas if I trace a start on my system, I get: + 22:40:38: GetParams:139: case $PidFile in + 22:40:38: GetParams:145: PidFile=/var/run//httpd2.pid + 22:40:38: GetParams:149: PIDFILE_DIRECTIVE=true + 22:40:38: GetParams:153: for p in '"$PORT"' '"$Port"' 80 + 22:40:38: GetParams:154: CheckPort '' .. + 22:40:38: apache_start:172: '[' -d /var/run/apache2 ']' + 22:40:38: apache_start:174: '[' -z true ']' + 22:40:38: apache_start:177: ocf_run /usr/sbin/httpd2 -DSTATUS -f /etc/apache2/httpd.conf -c 'PidFile /var/run//httpd2.pid' Note some variance in line numbering. I've tracked this down to: https://github.com/ClusterLabs/resource-agents/commit/2ce0b97 resource-agents in openSUSE:Factory does not have this fix. resource-agents in network:ha-clustering:Factory *does* have it, which is why it works for me. Some further digging around shows that apache actually does create a pidfile by itself if one isn't specified, but it's creating /var/run/httpd.pid (note the missing '2', which doesn't match what the RA wants). Interestingly, apache on SLE 11 SP3 *does* create the pidfile /var/run/httpd2.pid by default, which is why we never saw this before. I hate this RA. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.