How to check if service is activated