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

Lennart Poettering lennart at poettering.net
Wed Sep 27 07:52:48 UTC 2017


On Mi, 27.09.17 01:36, Kai Krakow (hurikhan77 at gmail.com) wrote:

> Am Mon, 25 Sep 2017 10:26:48 +0200
> schrieb Miroslav Suchý <msuchy at redhat.com>:
> 
> > Dne 25.9.2017 v 08:47 Mantas Mikulėnas napsal(a):
> > > 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 guess this crash has been caught by ABRT.
> > 
> > Try:
> >   abrt-cli list
> 
> Also try "coredumpctl list". Maybe systemd-coredump did catch the dump.

The exit status in the log message above indicates that no coredump
was collected, because in that case the exit code would have to be
"dumped" instead of "killed" as shown.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list