aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/debug
blob: 5aef9227f04fc14f1423a7d4f31e4c6c12407762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
CMD=`tempfile`
LOG="debug.log"
ipsec start --nofork 2>&1 > $LOG &
sleep 1
echo >> $LOG
echo >> $LOG
echo >> $LOG
echo "c" > $CMD
gdb -batch /usr/local/libexec/ipsec/charon `cat /var/run/charon.pid ` -x $CMD 2>&1 >> $LOG
ipsec stop
rm $CMD