winlin

delete pid file when stop service

@@ -117,6 +117,8 @@ stop() { @@ -117,6 +117,8 @@ stop() {
117 sleep 0.1 117 sleep 0.1
118 else 118 else
119 ok_msg "SRS stopped" 119 ok_msg "SRS stopped"
  120 + # delete the pid file when stop success.
  121 + rm -f ${pid_file}
120 break; 122 break;
121 fi 123 fi
122 done 124 done