Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #corefile stuff
  2. [root@Jolla tmp]# cat /etc/sysctl.d/coredump.conf
  3. kernel.core_uses_pid = 1
  4. kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
  5. fs.suid_dumpable = 2
  6.  
  7. #apply
  8. [root@Jolla tmp]# sysctl -p /etc/sysctl.d/coredump.conf
  9. kernel.core_uses_pid = 1
  10. kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
  11. fs.suid_dumpable = 2
  12.  
  13. #allow any user
  14. [root@Jolla tmp]# grep soft.*core /etc/security/limits.conf
  15. *               soft    core            0
  16. #re-login
  17.  
  18. #change limits
  19. [nemo@Jolla tmp]$ ulimit -c
  20. 0
  21. [nemo@Jolla tmp]$ ulimit -c unlimited
  22.  
  23. #run app
  24. [nemo@Jolla tmp]$ /usr/bin/harbour-warehouse > /dev/null 2>&1 &
  25. [1] 3711
  26.  
  27. #dump core
  28. [nemo@Jolla tmp]$ ps -Af | grep warehouse
  29. nemo      3711  3508 59 19:22 pts/0    00:00:02 /usr/bin/harbour-warehouse
  30. nemo      3748  3508  1 19:22 pts/0    00:00:00 grep warehouse
  31. [nemo@Jolla tmp]$ kill -6 3711
  32. [nemo@Jolla tmp]$
  33. [1]+  Aborted                 (core dumped) /usr/bin/harbour-warehouse > /dev/null 2>&1
  34. [nemo@Jolla tmp]$ ls -la core*
  35. -rw------- 1 nemo nemo       120741888 Jul 29 19:22 core-harbour-warehou-6-100000-100000-3711-1406654548
  36. [nemo@Jolla tmp]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement