V
V
videns2011-04-04 21:07:41
macOS
videns, 2011-04-04 21:07:41

launchd on macOS?

Just started to master MacOS and there are some misunderstandings with the launch of services. As I understand it, all services (at least in 10.5 and 10.5) are launched via launchd and you can see the list of loaded ones with the
launchctl list command.
If the PID column has a number greater than zero, then this daemon is not only loaded, but also running at the moment. Everything is quite logical, for example, I turn off the “Remote Management” item in sharing and everything is fine in launchctl:
up to
276 - com.apple.RFBRegisterMDNS_RemoteManagement.server
after
- 0 com.apple.RFBRegisterMDNS_RemoteManagement.server
But this is not the case for all demons. For example, if I enable "remote login", then a new item will appear in launchctl, which was not there before:
- 0 com.openssh.sshd
and this daemon does not have a PID, that is, we can assume that we have sshd turned off. But the server listens for connections on port 22 and for each new connection it starts a separate process like 0xxxxxxx.anonymous.sshd, which has a PID
So why does the original com.openssh.sshd have no PID and how can I find out exactly which daemons are running?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2011-04-05
@Bublik

ps aux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question