Hi everybody, I have some questions regarding daemons and system network extensions. I’ve read here (https://developer.apple.com/forums/thread/721674): “System extensions are effectively launchd
daemons”. So I have a question, can we launch system extension somehow directly via providing com.example.plist
file into Library/LaunchDaemons
and loading it? Or, for example, by loading it via SMAppService.daemon()
.
We need our network extension to run before user session.
If above is not possible, and we’ll have a separate daemon, which only purpose is to start network extension, how can we listen to the lifecycle of the network extension? For example (I’ve already made some experiments): we start daemon, it starts NE, we unregister daemon (via SMAppService
), but NE still lives. Is it possible to get callback/signal in the daemon, that it was unregistered and shutdown gracefully?