// Personal website of
Chris Smith
About
Posts
Projects
Snippets
Uses
Misc
Snippets
» Systemd » Find unit that owns a PID
Simply:
systemctl status
$PID