Fixed PID issue in service script