From dcab2aff7bf9659334e6dda7f50caccbe849213e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 14 Jul 2010 15:31:30 -0700 Subject: Enable putting core files /var/core For serviceablity put core files in /var/core. But core file will still not be created unless process is running with permission to write there, and has ulimit permission. --- debian/vyatta-cfg-system.postinst.in | 1 + sysconf/vyatta-sysctl.conf | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 3c3c2e40..1058f718 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -147,6 +147,7 @@ fi # create needed directories mkdir -p /var/log/user +mkdir -p /var/core touch /etc/environment diff --git a/sysconf/vyatta-sysctl.conf b/sysconf/vyatta-sysctl.conf index f10f4541..671afac1 100644 --- a/sysconf/vyatta-sysctl.conf +++ b/sysconf/vyatta-sysctl.conf @@ -9,6 +9,9 @@ kernel.panic_on_oops=1 # Timeout before rebooting on panic kernel.panic=60 +# Send all core files to /var/core/core.program.pid.time +kernel.core_pattern=/var/core/core-%e-%p-%t + # ARP configuration # arp_filter - allow multiple network interfaces on same subnet # arp_announce - avoid local addresses no on target's subnet -- cgit v1.2.3 From 3de78deef2137052603c9d1ae85f840459e73a44 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 14 Jul 2010 16:25:22 -0700 Subject: 0.17.66 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 71469860..2c5efd31 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +vyatta-cfg-system (0.17.66) unstable; urgency=low + + * Enable putting core files /var/core + + -- Stephen Hemminger Wed, 14 Jul 2010 16:25:22 -0700 + vyatta-cfg-system (0.17.65) unstable; urgency=low * Bugfix 5845, 5557: Install vyatta-update-grub.pl in -- cgit v1.2.3