Make core dumps work

Core dumps are written to the /var/local/dumps directory.
This commit is contained in:
Reto Buerki 2013-01-16 14:49:50 +01:00 committed by Tobias Brunner
parent e3a3013323
commit 41943e9c1b
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh -e
ulimit -c unlimited >/dev/null 2>&1
install -m 1777 -d /var/local/dumps >/dev/null 2>&1
echo "/var/local/dumps/core.%e.%p" > /proc/sys/kernel/core_pattern

View File

@ -53,6 +53,6 @@
#ftp - chroot /ftp
#@student - maxlogins 4
* hard core unlimited
* soft core unlimited
# End of file

View File

@ -57,4 +57,6 @@ net.ipv6.conf.all.forwarding=1
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
# Enable coredump for suid binaries
fs.suid_dumpable = 1