Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #corefile stuff
- [root@Jolla tmp]# cat /etc/sysctl.d/coredump.conf
- kernel.core_uses_pid = 1
- kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
- fs.suid_dumpable = 2
- #apply
- [root@Jolla tmp]# sysctl -p /etc/sysctl.d/coredump.conf
- kernel.core_uses_pid = 1
- kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
- fs.suid_dumpable = 2
- #allow any user
- [root@Jolla tmp]# grep soft.*core /etc/security/limits.conf
- * soft core 0
- #re-login
- #change limits
- [nemo@Jolla tmp]$ ulimit -c
- 0
- [nemo@Jolla tmp]$ ulimit -c unlimited
- #run app
- [nemo@Jolla tmp]$ /usr/bin/harbour-warehouse > /dev/null 2>&1 &
- [1] 3711
- #dump core
- [nemo@Jolla tmp]$ ps -Af | grep warehouse
- nemo 3711 3508 59 19:22 pts/0 00:00:02 /usr/bin/harbour-warehouse
- nemo 3748 3508 1 19:22 pts/0 00:00:00 grep warehouse
- [nemo@Jolla tmp]$ kill -6 3711
- [nemo@Jolla tmp]$
- [1]+ Aborted (core dumped) /usr/bin/harbour-warehouse > /dev/null 2>&1
- [nemo@Jolla tmp]$ ls -la core*
- -rw------- 1 nemo nemo 120741888 Jul 29 19:22 core-harbour-warehou-6-100000-100000-3711-1406654548
- [nemo@Jolla tmp]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement