1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

delete pid file when stop service

This commit is contained in:
winlin 2014-04-28 18:07:18 +08:00
parent 23b04e2a57
commit 555d8b9f1d

View file

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