rsync: added daemon scripts and configuration.

This commit is contained in:
Ricardo Martins 2014-04-28 23:09:43 +01:00
parent d0381c9b62
commit 108ce638ed
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 "$cfg_package_spec_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