freeswitch/scripts/freeswitch-gcore
Michael Jerris 4e32aaee27 s/bash/sh/
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16024 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-22 20:06:10 +00:00

13 lines
480 B
Bash

#!/bin/sh
fspid=$(cat /usr/local/freeswitch/log/freeswitch.pid)
gcore -o /usr/local/freeswitch/log/freeswitch.gcore $fspid && \
gdb /usr/local/freeswitch/bin/freeswitch \
-c /usr/local/freeswitch/log/freeswitch.gcore.$fspid \
--eval-command='set pagination off' \
--eval-command='bt' \
--eval-command='bt full' \
--eval-command='thread apply all bt' \
--eval-command='thread apply all bt full' \
--eval-command='quit'
#rm /usr/local/freeswitch/log/freeswitch.gcore.$fspid