#!/bin/bash
-# This must be called as:
+# This must be called as (note the trailing dot):
#
# stunnel-rsync HOSTNAME rsync --server --daemon .
#
# ... which is typically done via the rsync-ssl script, which results in something like this:
#
-# rsync --rsh=stunnel-rsync -aiv HOSTNAME::module ...
+# rsync --rsh=stunnel-rsync -aiv HOSTNAME::module [ARGS]
#
# This SSL setup based on the files by: http://dozzie.jarowit.net/trac/wiki/RsyncSSL
# Note that this requires at least version 4.x of stunnel.
exec = @bindir@/rsync
# You can either share the same config as a normal daemon, or specify a separate config:
-execargs = rsync --server --daemon
-#execargs = rsync --server --daemon --config=/etc/rsync-ssl/rsyncd.conf
+execargs = rsync --server --daemon .
+#execargs = rsync --server --daemon --config=/etc/rsync-ssl/rsyncd.conf .