Fix issues with process groups and refactor service actions