Update service

fixed if termination and corrected pm2 param order