Bug#764616: rsync doesn't start during boot up process

2015-05-02 Thread Petr Baudis
Package: rsync
Version: 3.1.1-3
Severity: serious
Followup-For: Bug #764616

Dear Maintainer,

I would like to perhaps further clarify and summarize the bug.

The problem is that rsync, when installed, is not installed as
an enabled systemd service by default.  That means that after
a default wheezy to jessie upgrade, rsync silently stops being
started even if it has /etc/rsyncd.conf and used to get started
with sysvinit.

I believe the service should always be enabled by default; since
there is no /etc/rsyncd.conf by default (I think) it will not start
anyway, but that's something up to the user.  The true issue here
is that even if /etc/rsyncd.conf exists, the user has to manually do

systemctl enable rsync

after upgrade to restore working rsync, without a way about
learning about that.  No other services require this manual enable
step during an upgrade (or I did not notice them not running yet ;-).

I believe this breakage on upgrade is an rc bug that would be still
good to fix soon with an update within stable.  Therefore, I'm
proposing an rc-grade severity for it.

Thanks!


-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rsync depends on:
ii  base-files  8
ii  libacl1 2.2.52-2
ii  libattr11:2.4.47-2
ii  libc6   2.19-18
ii  libpopt01.16-10
ii  lsb-base4.1+Debian13+nmu1

rsync recommends no packages.

Versions of packages rsync suggests:
ii  openssh-client  1:6.7p1-5
ii  openssh-server  1:6.7p1-5

-- Configuration Files:
/etc/default/rsync changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764616: rsync doesn't start during boot up process

2015-03-02 Thread Paul Slootman
On Sat 28 Feb 2015, Thomas Rechberger wrote:

 with these set:
 /etc/init.d/rsync
 RSYNC_ENABLE=true
 /etc/default/rsync
 RSYNC_ENABLE=true
 
 then its a missing rsyncd.conf

Obviously, that's what the error message says:

start condition failed at Sa 2015-02-28 12:05:49 CET; 1min 0s ago
ConditionPathExists=/etc/rsyncd.conf was not met


 without the systemctl enable rsync.service it did not work, so its something
 the installer should do already (new install of rsync)

What config is a new install of rsync supposed to use?
Anything that could be installed by default might in theory be a
potential security risk.

If you choose to install this daemon, then it's also your
responsibility to ensure that a correct configuration exists for your
needs.


Paul


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764616: rsync doesn't start during boot up process

2015-03-02 Thread Thomas Rechberger

What config is a new install of rsync supposed to use?
Anything that could be installed by default might in theory be a
potential security risk.

If you choose to install this daemon, then it's also your
responsibility to ensure that a correct configuration exists for your
needs.




Its more about the systemctl enable command. I just posted above output 
so everyone can see whats going on.


I installed rsync package by using apt, the links in /etc/rcX did exist 
but rsync didnt start after reboot. So this looked like the damon would 
have been already enabled by the installer (like done by all other 
debian packages), but it was not. This is unexpected situation and leads 
to wrong assumptions.


So i dont know why this poses a security risk to not enable the daemon 
automatically by installation if it anyway doesnt gonna start when there 
is no default rsyncd.conf file and no RSYNC_ENABLE set.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764616: rsync doesn't start during boot up process

2015-02-28 Thread Thomas Rechberger

If you have done this:
systemctl enable rsync.service
Synchronizing state for rsync.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d rsync defaults
Executing /usr/sbin/update-rc.d rsync enable
Failed to execute operation: No such file or directory

after reboot:
systemctl status rsync.service
● rsync.service - fast remote file copy program daemon
   Loaded: loaded (/lib/systemd/system/rsync.service; enabled)
   Active: inactive (dead)
   start condition failed at Sa 2015-02-28 12:05:49 CET; 1min 
0s ago

   ConditionPathExists=/etc/rsyncd.conf was not met

with these set:
/etc/init.d/rsync
RSYNC_ENABLE=true
/etc/default/rsync
RSYNC_ENABLE=true

then its a missing rsyncd.conf

without the systemctl enable rsync.service it did not work, so its 
something the installer should do already (new install of rsync)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764616: rsync doesn't start during boot up process

2014-10-09 Thread Xoor Bes
Package: rsync
Version: 3.1.1-2
Severity: important

Debian Release: jessie/sid
Architecture: amd64 (x86_64)


I have problem with rsync. I can run int without any problem by hand

/etc/rc2.d# /etc/init.d/rsync start
[ ok ] Starting rsync (via systemctl): rsync.service.

/etc/rc2.d# /etc/init.d/rsync status
rsync.service - fast remote file copy program daemon
   Loaded: loaded (/lib/systemd/system/rsync.service; disabled)
   Active: active (running) since Thu 2014-10-09 16:29:07 CEST; 6min ago
 Main PID: 867 (rsync)
   CGroup: /system.slice/rsync.service
   867 /usr/bin/rsync --daemon --no-detach

Oct 09 16:29:07  rsyncd[867]: rsyncd version 3.1.1 starting, 
listening on port 873


/var/log# /etc/init.d/rsync stop
[ ok ] Stopping rsync (via systemctl): rsync.service.



but it doens't start after bootup process... I do not see any information 
neither in the syslog or on the console screen.

If I try run it like this...

/etc/rc2.d# /etc/rc2.d/S02rsync start
[] Starting S02rsync (via systemctl): S02rsync.serviceFailed to start 
S02rsync.service: Unit S02rsync.service failed to load: No such file or 
directory.
 failed!


/etc/rc2.d# /etc/rc2.d/S02rsync status
S02rsync.service
  Loaded: not-found (Reason: No such file or directory)
  Active: inactive (dead)


...It does not start.


/etc/rc2.d# ls -l S02rsync
lrwxrwxrwx 1 root root 15 Sep 22 23:07 S02rsync - ../init.d/rsync

/etc/rc2.d# md5sum ../init.d/rsync
c5d89677f904551f5b192f35ad98d73c  ../init.d/rsync

/etc/rc2.d# cat /etc/default/rsync |grep -Ev ^#
RSYNC_ENABLE=true
RSYNC_OPTS=''
RSYNC_NICE=''


Regards,
Xoor


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764616: rsync doesn't start during boot up process

2014-10-09 Thread Paul Slootman
On Thu 09 Oct 2014, Xoor Bes wrote:
 
 I have problem with rsync. I can run int without any problem by hand
 
 /etc/rc2.d# /etc/init.d/rsync start
 [ ok ] Starting rsync (via systemctl): rsync.service.
 
 /etc/rc2.d# /etc/init.d/rsync status
 rsync.service - fast remote file copy program daemon
Loaded: loaded (/lib/systemd/system/rsync.service; disabled)
Active: active (running) since Thu 2014-10-09 16:29:07 CEST; 6min ago
  Main PID: 867 (rsync)
CGroup: /system.slice/rsync.service
867 /usr/bin/rsync --daemon --no-detach
 
 Oct 09 16:29:07  rsyncd[867]: rsyncd version 3.1.1 starting, 
 listening on port 873
 
 
 /var/log# /etc/init.d/rsync stop
 [ ok ] Stopping rsync (via systemctl): rsync.service.
 
 
 
 but it doens't start after bootup process... I do not see any information 
 neither in the syslog or on the console screen.
 
 If I try run it like this...
 
 /etc/rc2.d# /etc/rc2.d/S02rsync start
 [] Starting S02rsync (via systemctl): S02rsync.serviceFailed to start 
 S02rsync.service: Unit S02rsync.service failed to load: No such file or 
 directory.
  failed!

You're apparently running systemd, but you're now using the old method
of the symlinks? I don't have any experience with systemd (and I hope to
keep it that way for as long as I can), but I don't think you should be
using the rcX.d/ directories when using systemd.

I hope someone else can help...
That's the problem with systemd apparently, if it doesn't work it's very
hard to find out why.

Paul


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764616: rsync doesn't start during boot up process

2014-10-09 Thread Paul Slootman
On Thu 09 Oct 2014, Xoor Bes wrote:

 but it doens't start after bootup process... I do not see any information 
 neither in the syslog or on the console screen.

After a very little bit of googling: have you done:

systemctl enable rsync

?


Paul


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org