Also systemd can provide you pid.