Update agent service management for PE 3.1
Merge pull request #1 from xaque208/service

update agent service management for PE 3.1