Package: rsync
Version: 3.1.1-3

I've set the RSYNC_OPTS='--port=9500' in /etc/default/rsync but it does not affect daemon options.
In Debian 7 all were OK.

/etc/default/rsync
[..]
# start rsync in daemon mode from init.d script?
#  only allowed values are "true", "false", and "inetd"
#  Use "inetd" if you want to start the rsyncd from inetd,
#  all this does is prevent the init.d script from printing a message
# about not starting rsyncd (you still need to modify inetd's config yourself).
RSYNC_ENABLE=true

# what extra options to give rsync --daemon?
#  that excludes the --daemon; that's always done in the init.d script
#  Possibilities are:
#   --address=123.45.67.89              (bind to a specific IP address)
#   --port=8730                         (bind to specified port; default 873)
RSYNC_OPTS='--port=9500'
[..]

# ps aux | grep rsync
root 9401 0.0 0.1 13804 2492 ? Ss 22:29 0:00 /usr/bin/rsync --daemon --no-detach

But the funny thing.
When I copy /etc/init.d/rsync to fe. /etc/init.d/whatever and I start it from new script, it is OK:
# cp /etc/init.d/rsync /etc/init.d/whatever
# systemctl daemon-reload
# /etc/init.d/whatever start
[ ok ] Starting whatever (via systemctl): whatever.service.
# ps aux | grep rsync
root 9467 0.0 0.1 13804 2472 ? S 22:31 0:00 /usr/bin/rsync --no-detach --daemon --config /etc/rsyncd.conf --port=9500


So, what is going on?
Thanks.

Debian 8.7, latest update, default installation.

Reply via email to