samba-bugs at samba.org
2011-Aug-28 20:46 UTC
[Bug 8416] New: Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 Summary: Please include systemd service file Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: michael+samba at stapelberg.de QAContact: rsync-qa at samba.org Hello, I created a systemd service file for rsyncd. systemd is a sysvinit replacement (see [1] for more information). One of the goals of systemd is to encourage standardization between different distributions. This means, while I also submitted a ticket in Debian GNU/Linux, I would like to ask you to accept this service file as the upstream distributor, so that other distributions can use the same service file and don?t have to ship their own. If you have any questions, please do not hesitate to contact me. Thanks! Best regards, Michael [1] http://en.wikipedia.org/wiki/Systemd -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Aug-29 06:26 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #1 from Wayne Davison <wayned at samba.org> 2011-08-29 06:26:49 UTC --- Created attachment 6823 --> https://bugzilla.samba.org/attachment.cgi?id=6823 rsync.service file snagged from debian bug -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Nov-06 15:45 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #2 from Adrien CLERC <adrien-bugreport at antipoul.fr> 2011-11-06 15:45:55 UTC --- It should be awesome to also include a socket unit file, so that rsync could be socket activated. Actually, it will only support inetd-style activation, but it will be an open door to support a full socket based activation -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Nov-26 04:23 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #3 from Cristian Rodr?guez <crrodriguez at opensuse.org> 2011-11-26 04:23:34 UTC --- There is a quirk to be aware of in this systemd unit. Rsync areturns with non-zero (code 20) exit code when the running service is stopped, so systemctl stop rsync.service will make the service to enter failed state and not stopped state. This is IMHO a bug in rsync when running as daemon. most if not all of other daemons return 0 exity code on SIGTERM. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-May-10 14:52 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #4 from mus.svz at gmail.com 2012-05-10 14:52:32 UTC --- ConditionPathExists=/etc/rsync.conf On my Arch Linux system this is actually /etc/rsyncd.conf and according to the man pages the 'd' is correct. Is this a typo or is Debian actually using /etc/rsync.conf for some reason? I simply removed this line from my service file, but imho it makes sense to include it. Nevertheless, apart from the exit code issue the service file works fine for me and I would also like to see this upstream. is there a bug report for the exit code issue / should I create one? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-May-10 15:29 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #5 from Paul Slootman <paul at debian.org> 2012-05-10 15:29:07 UTC --- $ dpkg -l rsync Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-===========================================ii rsync 3.0.9-1 fast, versatile, remote (and local) file-cop $ $ cat /lib/systemd/system/rsync.service [Unit] Description=fast remote file copy program daemon ConditionPathExists=/etc/rsyncd.conf [Service] ExecStart=/usr/bin/rsync --daemon --no-detach [Install] WantedBy=multi-user.target So no, Debian is _not_ using rsync.conf. That was written in the original bug report requesting the systemd support, but that was not quite correct, as I commented in that bug report; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639632 -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-May-31 13:07 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #6 from mus.svz at gmail.com 2012-05-31 13:07:14 UTC --- I created a separate bug report regarding the exit code issue since this should be fixed regardless of systemd: https://bugzilla.samba.org/show_bug.cgi?id=8967 -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-Jun-01 17:48 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #7 from Brian K. White <brian at aljex.com> 2012-06-01 17:48:00 UTC --- (In reply to comment #3)> There is a quirk to be aware of in this systemd unit. > > Rsync areturns with non-zero (code 20) exit code when the running service is > stopped, so systemctl stop rsync.service will make the service to enter failed > state and not stopped state. > > This is IMHO a bug in rsync when running as daemon. most if not all of other > daemons return 0 exity code on SIGTERM.I say it's a bug in systemd that it doesn't allow for daemons to behave however they may happen to behave. -- bkw -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-Jun-02 08:14 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #8 from michael+samba at stapelberg.de 2012-06-02 08:14:43 UTC --- (In reply to comment #7)> (In reply to comment #3) > > There is a quirk to be aware of in this systemd unit. > > > > Rsync areturns with non-zero (code 20) exit code when the running service is > > stopped, so systemctl stop rsync.service will make the service to enter failed > > state and not stopped state. > > > > This is IMHO a bug in rsync when running as daemon. most if not all of other > > daemons return 0 exity code on SIGTERM. > > I say it's a bug in systemd that it doesn't allow for daemons to behave however > they may happen to behave.When I tell any daemon that it should stop, I expect it to exit with exit code 0 when it was stopped without any problems. In case there was an error while stopping (say the disk is mounted read-only and some data cannot be written), I expect it to return with an error code. Therefore, I think rsyncd should be changed, not systemd :). -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Feb-24 00:01 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #9 from David Farning <dfarning at gmail.com> 2014-02-24 00:01:26 UTC --- Created attachment 9711 --> https://bugzilla.samba.org/attachment.cgi?id=9711 rsync.service -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Feb-24 00:07 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 --- Comment #10 from David Farning <dfarning at gmail.com> 2014-02-24 00:07:47 UTC --- I have correct the original rsync.service file. As a point of reference, both Fedora 20 [1] and Debian Sid use this rsync.service as their systemd service file. Thanks David 1- http://pkgs.fedoraproject.org/cgit/rsync.git/tree/rsyncd.service?h=f20 -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Feb-24 18:18 UTC
[Bug 8416] Please include systemd service file
https://bugzilla.samba.org/show_bug.cgi?id=8416 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Wayne Davison <wayned at samba.org> 2014-02-24 18:18:18 UTC --- Thanks for the file. I've gone ahead and included it in packaging/systemd dir. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Seemingly Similar Threads
- [Bug 50175] New: [regression kernel 3.4] : nouveau detects internal laptop display as "disconnected" / screen is turned off
- [Bug 8967] New: rsync returns with non-zero exit code when killed by SIGTERM
- Problem with CentOS package for 2.3.0 and old dependency in systemd with clean install
- Problem with CentOS package for 2.3.0 and old dependency in systemd with clean install
- Problem with CentOS package for 2.3.0 and old dependency in systemd with clean install