forked from Mirrors/freeswitch
13 lines
481 B
Bash
13 lines
481 B
Bash
#!/bin/bash
|
|
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
|