Module: sip-router
Branch: master
Commit: 127bf3d5be959a1287ae0fac91cf89e27ed01f42
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=127bf3d…
Author: Peter Dunkley <peter.dunkley(a)crocodilertc.net>
Committer: Peter Dunkley <peter.dunkley(a)crocodilertc.net>
Date: Wed Oct 2 22:14:15 2013 +0100
pkg/kamailio/centos: put core files in /tmp on CentOS
---
pkg/kamailio/centos/6/kamailio.init | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/pkg/kamailio/centos/6/kamailio.init b/pkg/kamailio/centos/6/kamailio.init
index 5f1d770..48470e1 100644
--- a/pkg/kamailio/centos/6/kamailio.init
+++ b/pkg/kamailio/centos/6/kamailio.init
@@ -97,10 +97,8 @@ if test "$DUMP_CORE" = "yes" ; then
ulimit -c unlimited
# directory for the core dump files
- # COREDIR=/home/corefiles
- # [ -d $COREDIR ] || mkdir $COREDIR
- # chmod 777 $COREDIR
- # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
+ COREDIR=/tmp
+ echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
fi
OPTIONS="-P $PID_FILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
$EXTRA_OPTIONS"