scripts: Run scriptstatus for hung event
authorMartin Schwenke <martin@meltin.net>
Mon, 22 Jul 2013 05:08:32 +0000 (15:08 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 29 Jul 2013 04:02:13 +0000 (14:02 +1000)
commit1b016b2dfc5d7d3f2a42ce4dfe569608e90eb714
tree53b47e8f650bde02f483ac04a4815e44441e267a
parente0f3fa1020e13b84bdd672538168d148f1847d57
scripts: Run scriptstatus for hung event

The timeout information printed by ctdbd is less than useful because
it refers to the cumulative time taken by the eventscripts run so far.
Adding scriptstatus output indicates where time was actually spent.

Since there is now quite a bit of output, serialise the calls to this
script using flock.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
config/debug-hung-script.sh [changed mode: 0644->0755]