diff --git a/trunk/etc/init.d/srs b/trunk/etc/init.d/srs index 0a5523f23..ab8c62c3a 100755 --- a/trunk/etc/init.d/srs +++ b/trunk/etc/init.d/srs @@ -117,6 +117,8 @@ stop() { sleep 0.1 else ok_msg "SRS stopped" + # delete the pid file when stop success. + rm -f ${pid_file} break; fi done