[systemd-devel] How to generate core file in system service

Xin Long lucien.xin at gmail.com
Mon Sep 25 05:59:02 UTC 2017


Hi,

linux network is using
  systemctl start teamd at team0.service
to start a teamd service, which will call teamd.

I got a teamd issue to debug, I wanted generate core file by adding abort()
in teamd and ulimit -c unlimited.

But when I start the deamon by "teamd" directly, I could get core file.
When I start it by systemctl start teamd at team0.service, no core file was
generate when it crashed, but only get:
   "systemd: teamd at team0.service: main process exited, code=killed,
status=6/ABRT"
in /var/log/messages.

I'm just wondering if there is a way to generate the core file when the
the program crashes even if I start it as a systeamd service ?

Thanks.


More information about the systemd-devel mailing list