projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c2976b
)
In init script, redirect core files to known writable directory in Xen
author
Keith Amidon
<keith@nicira.com>
Thu, 19 Mar 2009 17:08:37 +0000
(10:08 -0700)
committer
Keith Amidon
<keith@nicira.com>
Thu, 19 Mar 2009 17:10:13 +0000
(10:10 -0700)
"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
patch
|
blob
|
history
diff --git
a/vswitchd/etc/init.d/vswitch
b/vswitchd/etc/init.d/vswitch
index 7a4f7641679763f47eec05eff4ab4da87a77f0ae..65821e34497a2b7e9c0d0b712144cf9bf917ac02 100755
(executable)
--- 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=""