diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-14 15:31:30 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-14 15:31:30 -0700 |
commit | dcab2aff7bf9659334e6dda7f50caccbe849213e (patch) | |
tree | e096f74eb7a986b3a0c3b473796d9a3a930b11ef | |
parent | 5719dc4448a91e357a18c17df4f5849efc89d21b (diff) | |
download | vyatta-cfg-system-dcab2aff7bf9659334e6dda7f50caccbe849213e.tar.gz vyatta-cfg-system-dcab2aff7bf9659334e6dda7f50caccbe849213e.zip |
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.
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 1 | ||||
-rw-r--r-- | sysconf/vyatta-sysctl.conf | 3 |
2 files changed, 4 insertions, 0 deletions
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 |