rsync: added daemon script and config file.

This commit is contained in:
Ricardo Martins 2014-04-28 22:22:22 +01:00
parent 178dfec636
commit dd980c2220
3 changed files with 21 additions and 1 deletions

View File

@ -46,5 +46,6 @@ build()
target_install()
{
$cmd_target_strip rsync -o "$cfg_dir_rootfs/usr/bin/rsync"
$cmd_target_strip rsync -o "$cfg_dir_rootfs/usr/bin/rsync" &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -0,0 +1,9 @@
start()
{
/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
}
stop()
{
killall rsync > /dev/null 2>&1
}

View File

@ -0,0 +1,10 @@
list = true
uid = root
gid = root
read only = false
timeout = 30
[log]
hosts deny = *
hosts allow = 10.0.0.0/16
path = /opt/lsts/dune/log