handle Service Status

fun handleServiceStatus(service: HostService, onStatusChange: (ServiceStatus) -> Unit)

Method used to handle the status of the service such running or stopped

Parameters

service

The host to handle its status

onStatusChange

The callback to execute when the status of the service changed