Knowing which program runs a process at macos startup I would like to know if it is possible to know which program launches which process?
In my current case, I have the impression that my &quot;nginx&quot; is not controlled by &quot;brew&quot;, because when I retrieve the list of brew services I have:

and when I run
brew services stop nginx
nginx is still running in the activity monitor.
It is most likely started by launchd.  But you can see it’s Parent Process ID (PPID) with ps -ef and follow the PID/PPID back.