From ae825abbe74bce987fdeb814f95c0ae99472b5e8 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 9 Jun 2009 15:46:50 -0700 Subject: [PATCH] Xen: Fixes for core handling configuration An improper string comparison operator was used to check whether FORCE_COREFILES was enabled. Further, the check to enable core files was only down when vswitch was started, and not when restarted. Thanks to Ben for help debugging the issue. --- xenserver/etc_init.d_vswitch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 25aca61f9..821dd2377 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -242,6 +242,10 @@ EOF } function start { + if [ "$FORCE_COREFILES" = "y" ]; then + turn_on_corefiles + fi + insert_modules_if_required start_vswitchd start_brcompatd @@ -262,9 +266,6 @@ function restart { case "$1" in start) - if [ "$FORCE_COREFILES" == "y" ]; then - turn_on_corefiles - fi start ;; stop) -- 2.43.0