Update rsyncd.tpl

This commit is contained in:
midoks
2019-09-12 22:56:32 +08:00
parent 9c69443e2f
commit 777eb0c4a2
+3
View File
@@ -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"
}