added new param to make sure service is started/stopped. by default value is undef