Bug 876106

Summary: Add systemd service for rsync daemon
Product: [Fedora] Fedora Reporter: Graham White <gwhite>
Component: rsyncAssignee: Michal Luscon <mluscon>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: mluscon, ssorce, vvitek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-13 11:46:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Graham White 2012-11-13 10:34:53 UTC
Fedora could really do with a more easily configurable rsync when used in daemon mode.  I've recently been setting up Fedora mirrors and using the Fedora guidance, the following seems to be a decent set of options to include

As a default /etc/rsyncd.conf (many options from http://fedoraproject.org/wiki/Infrastructure/Mirroring) :

uid = nobody
gid = nobody
use chroot = yes
max connections = 8
pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
exclude = lost+found/
transfer logging = yes
timeout = 900
ignore nonreadable = yes
dont compress   = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
refuse options = checksum





As a default systemd.service file (Debian did something similar for systemd last year, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639632) :

[Unit]
Description=A program for synchronizing files over a network
After=syslog.target network.target
ConditionPathExists=/etc/rsyncd.conf

[Service]
EnvironmentFile=-/etc/sysconfig/rsyncd
ExecStart=/usr/bin/rsync --daemon --no-detach "$OPTIONS"

[Install]
WantedBy=multi-user.target





Finally, the environment configuration file /etc/sysconfig/rsyncd :

OPTIONS=""

Comment 1 Graham White 2012-11-13 10:42:03 UTC
Whoops, looks like this might be a dup of 737710, which of course I only find after raising this one.  Hopefully, my suggestions above are of some use though.

Comment 2 Michal Luscon 2012-11-13 11:46:37 UTC

*** This bug has been marked as a duplicate of bug 737710 ***