'Check that rsync is enabled to autostart'

def check_rsync_conf(self, status):

    if (self.checked_family == 'debian'):
        return
    if os.path.exists('/etc/xinetd.d/rsync'):
        f = open('/etc/xinetd.d/rsync')
        re_disable = re.compile('disable.*=.*yes')
        for line in f.readlines():
            if (re_disable.search(line) and (not line.strip().startswith('#'))):
                status.append((_("change    'disable'    to    'no'    in    %(file)s") % {'file': '/etc/xinetd.d/rsync'}))
    if os.path.exists('/usr/lib/systemd/system/rsyncd.service'):
        if (not os.path.exists('/etc/systemd/system/multi-user.target.wants/rsyncd.service')):
            status.append(_('enable    and    start    rsyncd.service    with    systemctl'))
    if ((not os.path.exists('/usr/lib/systemd')) and (not os.path.exists('/etc/xinetd.d/rsync'))):
        status.append(_('file    /etc/xinetd.d/rsync    does    not    exist'))
