Make core dumps work
Core dumps are written to the /var/local/dumps directory.
This commit is contained in:
parent
e3a3013323
commit
41943e9c1b
|
@ -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
|
|
@ -53,6 +53,6 @@
|
|||
#ftp - chroot /ftp
|
||||
#@student - maxlogins 4
|
||||
|
||||
* hard core unlimited
|
||||
* soft core unlimited
|
||||
|
||||
# End of 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
|
||||
|
|
Loading…
Reference in New Issue