From 72e415be4cdb39ba3443adf9a4a441b5474868fe Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 6 Oct 2016 11:14:09 +1100 Subject: ctdb-scripts: Dump stack traces of smbd processes after shutdown If any processes remain then they may be stuck in D state and this might tell us why. Update tests: tweak pidof stub, add support for smbd stack traces and add some new tests for the shutdown event. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Mon Oct 10 12:54:24 CEST 2016 on sn-devel-144 --- ctdb/config/events.d/50.samba | 1 + 1 file changed, 1 insertion(+) (limited to 'ctdb/config') diff --git a/ctdb/config/events.d/50.samba b/ctdb/config/events.d/50.samba index b521d00858f..4ed892cdc59 100755 --- a/ctdb/config/events.d/50.samba +++ b/ctdb/config/events.d/50.samba @@ -65,6 +65,7 @@ service_start () service_stop () { service "$CTDB_SERVICE_SMB" stop + program_stack_traces "smbd" 5 if [ -n "$CTDB_SERVICE_NMB" ] ; then service "$CTDB_SERVICE_NMB" stop fi -- cgit v1.2.1