Bug#645460: apache2.2-common: /etc/init.d/apache2 start and restart need to wait until really started

2013-01-31 Thread Nerijus Kislauskas
On 01/30/2013 06:24 PM, Arno Töll wrote:
 Hi,
 
 On 30.01.2013 15:39, Nerijus Kislauskas wrote:
 It makes lsb:apache2 unusable on pacemaker clusters.
 
 this is a known problem. I tried to address this problem partially in
 our upcoming Apache 2.4 tree, but since complex init scripts such as
 Apache's are error prone, we decided not to backport my improvements to 2.2.
 
 Could you try the new init script [1] and tell me if it fixes your
 problem? There I wait until the server is stopped, start is left as is
 so far.
 
 
 [1]
 http://anonscm.debian.org/gitweb/?p=pkg-apache/apache2.git;a=blob;f=debian/apache2.init;h=130c0f533d18abea263622dbd2673f134989b5ad;hb=refs/heads/next

No, it does not. Pacemaker result:

Jan 31 11:11:15 lrmd: [1979]: info: operation start[1579] on
apache2-test for client 1982: pid 24864 exited with return code 0
Jan 31 11:11:15 lrmd: [1979]: info: rsc:apache2-test monitor[1580] (pid
24880)
Jan 31 11:11:15 lrmd: [1979]: info: operation monitor[1580] on
apache2-test for client 1982: pid 24880 exited with return code 7
(mapped from 3)
Jan 31 11:11:16 lrmd: [1979]: info: cancel_op: operation monitor[1580]
on apache2-test for client 1982, its parameters: crm_feature_set=[3.0.6]
CRM_meta_name=[monitor] CRM_meta_interval=[6]
CRM_meta_timeout=[2]  cancelled
Jan 31 11:11:16 lrmd: [1979]: info: rsc:apache2-test stop[1581] (pid 24894)

I will stay with original wheezy apache2 init script with sleep X at
the end of start) section. Looks ugly, but works.

http://www.linux-ha.org/wiki/LSB_Resource_Agents
-- 
Nerijus Kislauskas


--
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/510a471d.2030...@ktu.lt



Bug#645460: apache2.2-common: /etc/init.d/apache2 start and restart need to wait until really started

2013-01-30 Thread Nerijus Kislauskas
Hi,

The same problem exists in Debian wheezy:

# cat /etc/debian_version
7.0
# while true; do /etc/init.d/apache2 stop  /dev/null;
/etc/init.d/apache2 start; echo -n Exit Code: ; echo $?;
/etc/init.d/apache2 status; echo; sleep 5; done
[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is running (pid 25328).

[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.

[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is running (pid 25517).

[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.

[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.

[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is running (pid 25757).

[ ok ] Starting web server: apache2.
Exit Code: 0
Apache2 is NOT running.
^C
#

It makes lsb:apache2 unusable on pacemaker clusters.

-- 
Nerijus Kislauskas


-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/510930b5.5080...@ktu.lt