4cfb45dc8b
PR #80 changed pgrep to systemctl show --property=MainPID + ps, but tests still mocked only one execSync call (the ps call). Now mock systemctl call first, then ps call. Ref #80 Co-authored-by: 小橘 <xiaoju@shazhou.work>