<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 25, 2017 at 8:59 AM, Xin Long <span dir="ltr"><<a href="mailto:lucien.xin@gmail.com" target="_blank">lucien.xin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
linux network is using<br>
systemctl start teamd@team0.service<br>
to start a teamd service, which will call teamd.<br>
<br>
I got a teamd issue to debug, I wanted generate core file by adding abort()<br>
in teamd and ulimit -c unlimited.<br>
<br>
But when I start the deamon by "teamd" directly, I could get core file.<br>
When I start it by systemctl start teamd@team0.service, no core file was<br>
generate when it crashed, but only get:<br>
"systemd: teamd@team0.service: main process exited, code=killed,<br>
status=6/ABRT"<br>
in /var/log/messages.<br>
<br>
I'm just wondering if there is a way to generate the core file when the<br>
the program crashes even if I start it as a systeamd service ?<br></blockquote><div><br></div><div>Yes, everything works the same way – `ulimit -c` corresponds to LimitCORE=, so make sure that's set to unlimited in your service.</div><div><br></div><div>(Remember that services are spawned by init, not by systemctl, so ulimits don't carry over directly.)</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>