[systemd-devel] Back trace systemd service unit by pid

Kevin Hsu hsukvn at gmail.com
Thu Dec 21 05:48:29 UTC 2017


Hi folks,

I am looking for a good way to backtrace systemd service by a process id.
The "systemctl status <pid>" command is available to do the magic. It will
show a full status of the service that creates the
pid. But this command gives too many details. The only thing I need is the
service unit name. Is there any simple way instead of parsing results from
"systemctl status" ?

For example like

> systemctl service-get 5566
> nginx.service


Thanks,
Kevin Hsu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171221/775b37e1/attachment.html>


More information about the systemd-devel mailing list