From 777eb0c4a210ee2b6f3d3bf950d8275fc58a6862 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 12 Sep 2019 22:56:32 +0800 Subject: [PATCH] Update rsyncd.tpl --- plugins/rsyncd/init.d/rsyncd.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/rsyncd/init.d/rsyncd.tpl b/plugins/rsyncd/init.d/rsyncd.tpl index a3cb1d087..cf87917ca 100755 --- a/plugins/rsyncd/init.d/rsyncd.tpl +++ b/plugins/rsyncd/init.d/rsyncd.tpl @@ -24,6 +24,9 @@ p_start(){ p_stop(){ echo "Stopping ..." ps -ef | grep rsync | grep -v grep | grep -v python | awk '{print $2}' | xargs kill -9 + if [ -f /var/run/rsyncd.pid ]; then + rm -rf /var/run/rsyncd.pid + fi echo "rsyncd stopped" }