scripts: Run scriptstatus for hung event
commit67b22b6e94784b4ac324881a25993f9cecd2946d
authorMartin Schwenke <martin@meltin.net>
Mon, 22 Jul 2013 05:08:32 +0000 (22 15:08 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 29 Jul 2013 04:02:13 +0000 (29 14:02 +1000)
treedc65a8427b536a6fcc4458a92a2cecdfdaa7b496
parent6cbcc4a8d9d4569cb5d3143638ceb033e61f0fb9
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>

(This used to be ctdb commit 1b016b2dfc5d7d3f2a42ce4dfe569608e90eb714)
ctdb/config/debug-hung-script.sh [changed mode: 0644->0755]