Add openflow-switch settings for the limit on core files.
This commit is contained in:
1 parent
08ce9884b9
commit
91bdbe0c01
2 files changed
+12
No files matched your search
Vendored
+5
@@ -45,6 +45,7 @@ unset CACERT_MODE
|
||||
unset MGMT_VCONNS
|
||||
unset COMMANDS
|
||||
unset DAEMON_OPTS
|
||||
unset CORE_LIMIT
|
||||
default=/etc/default/openflow-switch
|
||||
if [ -f $default ] ; then
|
||||
. $default
|
||||
@@ -255,6 +256,10 @@ case "$1" in
|
||||
DAEMON_OPTS="$DAEMON_OPTS --out-of-band"
|
||||
fi
|
||||
|
||||
if test -n "$CORE_LIMIT"; then
|
||||
check_ops "Setting core limit to $CORE_LIMIT" ulimit -c "$CORE_LIMIT"
|
||||
fi
|
||||
|
||||
echo -n "Starting $DESC: "
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
||||
--exec $DAEMON -- nl:0 $CONTROLLER --detach --pidfile=$PIDFILE \
|
||||
|
||||
Reference in new issue
Block a user