On 01/20/2017 09:21 AM, Paul Slootman wrote:
On Fri 20 Jan 2017, serwisy wrote:
On 01/20/2017 08:13 AM, Paul Slootman wrote:
On Thu 19 Jan 2017, has...@kontener.eu.org wrote:
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?
Can you show the lines that you deleted in [...] ?

You are probably using systemd, and the current /etc/default/rsync as
distributed has the lines:

# defaults file for rsync daemon mode
#
# This file is only used for init.d based systems!
# If this system uses systemd, you can specify options etc. for rsync
# in daemon mode by copying /lib/systemd/system/rsync.service to
# /etc/systemd/system/rsync.service and modifying the copy; add required
# options to the ExecStart line.

That should be self-explanatory.
Hey,


I don't see these lines:

# cat rsync
# defaults file for rsync daemon mode

# start rsync in daemon mode from init.d script?
Then you probably upgraded from the previous version of rsync and didn't
replace /etc/default/rsync when asked by dpkg. You should then have a
/etc/default/rsync.dpkg-dist file which is the original (new) version.

Please do what is suggested by the first comments and see if that helps.


Paul

I don't think so Paul:

*root@fluff:/home/has# apt-get --purge remove rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  rsync*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 750 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 26954 files and directories currently installed.)
Removing rsync (3.1.1-3) ...
Purging configuration files for rsync (3.1.1-3) ...
Processing triggers for man-db (2.7.0.2-5) ...

*root@fluff:/home/has$ ls /etc/default/rsync
ls: cannot access /etc/default/rsync: No such file or directory

*root@fluff:/home/has$ apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rsync
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/390 kB of archives.
After this operation, 750 kB of additional disk space will be used.
Selecting previously unselected package rsync.
(Reading database ... 26923 files and directories currently installed.)
Preparing to unpack .../rsync_3.1.1-3_amd64.deb ...
Unpacking rsync (3.1.1-3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up rsync (3.1.1-3) ...
Processing triggers for systemd (215-17+deb8u6) ...

*root@fluff:/home/has$ cat /etc/default/rsync
# defaults file for rsync daemon mode

# 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=false

# which file should be used as the configuration file for rsync.
# This file is used instead of the default /etc/rsyncd.conf
# Warning: This option has no effect if the daemon is accessed
#          using a remote shell. When using a different file for
#          rsync you might want to symlink /etc/rsyncd.conf to
#          that file.
# RSYNC_CONFIG_FILE=

# 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=''

# run rsyncd at a nice level?
#  the rsync daemon can impact performance due to much I/O and CPU usage,
#  so you may want to run it at a nicer priority than the default priority.
#  Allowed values are 0 - 19 inclusive; 10 is a reasonable value.
RSYNC_NICE=''

# run rsyncd with ionice?
#  "ionice" does for IO load what "nice" does for CPU load.
#  As rsync is often used for backups which aren't all that time-critical,
#  reducing the rsync IO priority will benefit the rest of the system.
#  See the manpage for ionice for allowed options.
#  -c3 is recommended, this will run rsync IO at "idle" priority. Uncomment
#  the next line to activate this.
# RSYNC_IONICE='-c3'

# Don't forget to create an appropriate config file,
# else the daemon will not start.

*root@fluff:/home/has$ ls /etc/default/rsync.dpkg-dist
ls: cannot access /etc/default/rsync.dpkg-dist: No such file or directory

Tom

Reply via email to