REV-7 Added common step for start,stop,restart service by api and assert pids