pid

val pid: Int?

Process ID of the service host. Only has a value when the service host is running as separate process.

It has no value if the service host has not started or started inside the main process.