From 9265d75e35ee9f748f5e392c828489153693ffe6 Mon Sep 17 00:00:00 2001 From: Keith Amidon Date: Thu, 19 Mar 2009 10:08:37 -0700 Subject: [PATCH] In init script, redirect core files to known writable directory in Xen "Embedded" XenServers don't have a writable "/" directory. For now point cores to /var/log, which is known to be writable. --- vswitchd/etc/init.d/vswitch | 1 + 1 file changed, 1 insertion(+) diff --git a/vswitchd/etc/init.d/vswitch b/vswitchd/etc/init.d/vswitch index 7a4f7641..65821e34 100755 --- a/vswitchd/etc/init.d/vswitch +++ b/vswitchd/etc/init.d/vswitch @@ -52,6 +52,7 @@ function start { action "Inserting brcompat module" insmod $VSWITCH_BASE/datapath/linux-2.6/brcompat_mod.ko fi ulimit -c unlimited # Ensure core dump on crash. Will be in '/'. + echo "/var/log/%e-%t" > /proc/sys/kernel/core_pattern local syslog_opt="-vANY:SYSLOG:${SYSLOG_LOGLEVEL}" local logfile_file_opt="" local logfile_level_opt="" -- 2.30.2