From: Keith Amidon Date: Thu, 19 Mar 2009 17:08:37 +0000 (-0700) Subject: In init script, redirect core files to known writable directory in Xen X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9265d75e35ee9f748f5e392c828489153693ffe6;p=openvswitch 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. --- 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=""