Hi all,
I want to make an rsync daemon, that allows only one connection at a
time. This is to sort-of manage some files that I don't want multiple
people editing at once.
I tried with xinetd and rsync, and an rsyncd.conf pointing to a small
directory containing the files.
$ cat /etc/xinetd.d/rsyncd-sched
service rsyncd-sched
{
disable = no
only_from = 0.0.0.0
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon --no-detach --timeout=300
--config=/home/sms/etc/rsyncd-sched.conf
log_on_failure += USERID
nice = 10
instances = 1
}
I tried various combinations of --daemon and --no-detach, but rsync
fails saying that --timeout is not valid in daemon mode.
I want the server to manage the timeout, and not the client, so that a
rouge client can go dead, and the server will automatically detach it.
I couldn't find any xinetd options to set a timeout on transmitting
data. Do I have to go into socket options? I don't have to use rsync -
sftp or something else would do as well as the number of files is quite
small...
Any tips would be appreciated, thanks!
cya,
--
Iain Buchanan <iaindb at netspace dot net dot au>
Anything is good if it's made of chocolate.
--
[EMAIL PROTECTED] mailing list