// Personal website of Chris Smith

Snippets » Systemd » Find unit that owns a PID

Simply:

systemctl status $PID