Rsync could not run as daemon
Hi All, this is the first time I post message here. Nice to meet you all first!!
I got a problem on configuring Rsync on my CentOS server. The rsync could not execute on startup and I found the port is not open by netstat -nr |grep ":873" unless I execute rsync --daemon manually. Might I seek for all your suggestion? Here is the configuration files:
======================================
# cat /etc/xinetd.d/rsync
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
======================================
#cat /etc/rsyncd.conf
log file = /var/log/rsync.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
secrets file = /etc/rsyncd.secrets
motd file = /etc/rsyncd.motd
read only = yes
list = yes
uid = nobody
gid = nobody
[backup]
comment = Folder on server01
path = /home/backup
auth users =
hosts allow = 192.168.0.0/24
hosts deny = *.microsoft.com
list = false
thank you very much!
|