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 “nginx” is not controlled by “brew”, because when I retrieve the list of brew services I have:

enter image description here

and when I run

brew services stop nginx

nginx is still running in the activity monitor.

enter image description here