MT#6485 Container detection in init script. Minor improve.

Just run onces the command to detect virt environment.
mr3.4.1
Victor Seva 12 years ago
parent 764c344f83
commit d4e4010b5d

@ -62,8 +62,14 @@ if test "$SEMS_CFG_FILE" ; then
CFGPARAMS="-f $SEMS_CFG_FILE"
fi
if test "$SEMS_CREATE_CORE" = "yes" ; then
if [ -x /usr/sbin/ngcp-virt-identify ]; then
if /usr/sbin/ngcp-virt-identify --type container; then
VIRT="yes"
fi
fi
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
@ -75,7 +81,7 @@ if test "$SEMS_CREATE_CORE" = "yes" ; then
fi
fi
if /usr/sbin/ngcp-virt-identify --type container; then
if [ "$VIRT" = "yes" ]; then
echo "Container environment detected. Skipping file descriptors limit configuration."
else
# raise file descriptors limit - call hold consumes two fds for RTP ports and one for moh file

Loading…
Cancel
Save