I want to enable core dump generation for a systemd service which gives a SEGV status and exits.
scd.service: main process exited, code=killed, status=11/SEGV
Unit scd.service entered failed state.
scd.service failed.
my bashrc file already has ulimit -c unlimited.
after running systemd-coredumpctl the output is
No coredumps found.
Note : I am able to generate core dump for normal programs executed via terminal but unable to do so for a systemd service
You need to set LimitCORE=infinity
in your service file (scd.service), not your bashrc.
More info in https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Properties