Enable core dumps for booster crashes on FileWave 12.0+

For centOS

Step-by-step guide

  1. edit this file:
    vi /usr/local/etc/filewave/supervisor/supervisord-booster.conf

  2. Uncomment this line:
    command=/bin/bash -c "ulimit -c unlimited && /usr/local/sbin/fwbooster

  3. restart the booster:

    sudo /etc/init.d/fw-booster restart


  4. edit this file:

    vi /etc/sysctl.conf


  5. Add the lines below:

    kernel.core_uses_pid = 1

    kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t

    fs.suid_dumpable = 2


  6. Enable debugging:

    echo "DAEMON_COREFILE_LIMIT='unlimited'" >> /etc/sysconfig/init


  7. Reload the settings in /etc/sysctl.conf:

    sysctl -p

 

For testing purpose:

Kill booster process e.g:

(ps ax | grep fw)

kill -6 3014


Checke if a core dump is generated under /tmp.

Should be something like this:

core-fwbooster-6-0-0-8440-1509016449