// Personal website of Chris Smith

Systemd » Find unit that owns a PID

Simply:

systemctl status $PID