added the option to check a service state from the shell