TT#26104 Do not set global sysctl settings

These override any of our global settings set in sysctl.d for example.
Which can be very confusing. Only set process specific settings to not
disturb the whole system.

Change-Id: I131d273804b530b1a5326fec82f44517676d4b40
changes/32/17232/1
Guillem Jover 9 years ago
parent 4ae85a5713
commit 2d4962e292

@ -22,7 +22,5 @@ SEMS_PIDFILE="$SEMS_RUNDIR/ngcp-sems.pid"
# set if you want to create core files
SEMS_CREATE_CORE="yes"
SEMS_COREDIR="/var/cores"
SEMS_CACHEDIR="/var/cache/ngcp-sems"
SEMS_CACHEDIR_EXTRADIRS="audio_cache callingcard"

@ -74,11 +74,6 @@ if test "$SEMS_CREATE_CORE" = "yes" ; then
if [ "$VIRT" = "yes" ]; then
echo "Container environment detected. Skipping core dump configuration."
else
# directory for the core dump files
[ -d $SEMS_COREDIR ] || mkdir $SEMS_COREDIR
chmod 777 $SEMS_COREDIR
echo "$SEMS_COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
echo 2 > /proc/sys/fs/suid_dumpable
ulimit -c unlimited
fi
fi

Loading…
Cancel
Save