Update rsyncd.tpl

This commit is contained in:
midoks
2019-09-13 01:30:24 +08:00
parent 7c3ba76494
commit 71c7a38297
+1 -1
View File
@@ -21,7 +21,7 @@ p_start(){
if [ -f /var/run/rsyncd.pid ]; then
rm -rf /var/run/rsyncd.pid
fi
/usr/bin/rsync --daemon
/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
sleep 0.3
isStart=$(ps -ef | grep rsync | grep 'daemon' | grep -v grep | grep -v python | awk '{print $2}')
if [ "$isStart" == '' ];then