This commit is contained in:
2024-01-31 18:06:16 +08:00
parent d54a0b84bb
commit fc79d5d350
9 changed files with 102 additions and 8 deletions

View File

@@ -34,12 +34,12 @@ function Quit {
function StartProc {
Print Starting rsync ...
rm -f /var/run/rsyncd.pid
rm -f $LOG_DIR/rsyncd.pid
rsync --daemon \
--no-detach \
--port=873 \
--log-file=$LOG_DIR/rsyncd.log \
--dparam=pidfile=/var/run/rsyncd.pid \
--dparam=pidfile=$LOG_DIR/rsyncd.pid \
&>> $LOG_DIR/rsyncd.out &
PIDS="$PIDS $!"
Print Rsync started.