From 555d8b9f1d69739ef4bd7e7b46b4a7491d063c51 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 28 Apr 2014 18:07:18 +0800 Subject: [PATCH] delete pid file when stop service --- trunk/etc/init.d/srs | 2 ++ 1 file changed, 2 insertions(+) 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