I've a problem during installing the rsync Debian package. Here i show what happens: 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 0B/343kB of archives. After this operation, 627kB of additional disk space will be used. Selecting previously deselected package rsync. (Reading database ... 45420 files and directories currently installed.) Unpacking rsync (from .../rsync_3.0.3-2_amd64.deb) ... Processing triggers for man-db ... Setting up rsync (3.0.3-2) ... rsync daemon not enabled in /etc/default/rsync, not starting... (warning). What could be the reason and how can this problem be solved?
Hi Falko, Thanks for your reply. Within the atachment, you find the content of the configuration file. When i change the line: RSYNC_ENABLE=false into RSYNC_ENABLE=true and install rsync again, then i got: 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 0B/343kB of archives. After this operation, 627kB of additional disk space will be used. Selecting previously deselected package rsync. (Reading database ... 45422 files and directories currently installed.) Unpacking rsync (from .../rsync_3.0.3-2_amd64.deb) ... Processing triggers for man-db ... Setting up rsync (3.0.3-2) ... Restarting rsync daemon: rsyncrsync daemon not running, attempting to start. (warning). missing or empty config file /etc/rsyncd.conf failed! failed! invoke-rc.d: initscript rsync, action "restart" failed. dpkg: error processing rsync (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: rsync E: Sub-process /usr/bin/dpkg returned an error code (1)
after you changed the /etc/default/rsync file, you shouldn't issue apt-get install rsync, but run the init script. it won't start because there is no /etc/rsyncd.conf file .. there is an example in: man rsyncd.conf but i've included an example of one i use on a filer: Code: mark@pollux:/usr$ cat /etc/rsyncd.conf motd file = /etc/motd max connections = 2 syslog facility = local3 hosts allow = 192.168.5.76 address = 192.168.5.107 [dvddownload_11t] comment = DVD Download 11T path = /data/dvddownload_11t read only = yes list = yes uid = rsyncer gid = rsyncer hosts allow = 192.168.5.61 192.168.5.181 [dvddownload_15t] comment = DVD Download 5T path = /data/dvddownload_5t read only = yes list = yes uid = rsyncer gid = rsyncer hosts allow = 192.168.5.61 192.168.5.181
Thanks for your feedback, but i don't think that a missing /etc/rsyncd.conf file is the cause. I installed the rsync package a lot of times on different servers and each time there was no /etc/rsyncd.conf file. The rsync installation always went fine and i had never errors, even with a missing /etc/rsyncd.conf file.
Really strange... Anyway, can you test if it starts with an empty /etc/rsyncd.conf? Code: touch /etc/rsyncd.conf
rsync runs without a conf file, true .. BUT!! The dpkg process expects a conf file (because it wants to restart/stop rsync, but THAT init process throws an error because the conf file doesn't exist) .. dpkg stops working from that point on, hence the error: Code: missing or empty config file /etc/rsyncd.conf failed! failed! invoke-rc.d: [B]initscript[/B] rsync, action "restart" failed. dpkg: error processing rsync (--configure): subprocess post-installation script returned error exit status 1