rsync: added daemon script and config file.
This commit is contained in:
parent
178dfec636
commit
dd980c2220
@ -46,5 +46,6 @@ build()
|
|||||||
|
|
||||||
target_install()
|
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 -
|
||||||
}
|
}
|
||||||
|
9
rules/rsync/fs/etc/rc.d/rsyncd
Normal file
9
rules/rsync/fs/etc/rc.d/rsyncd
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
start()
|
||||||
|
{
|
||||||
|
/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
stop()
|
||||||
|
{
|
||||||
|
killall rsync > /dev/null 2>&1
|
||||||
|
}
|
10
rules/rsync/fs/etc/rsyncd.conf
Normal file
10
rules/rsync/fs/etc/rsyncd.conf
Normal 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
|
Reference in New Issue
Block a user