def GenXinetd(svc='test', disable='no'):
 defaults = '\n    defaults\n    {\n       instances      = 60\n       log_type       = SYSLOG     authpriv\n       log_on_success = HOST PID\n       log_on_failure = HOST\n       cps            = 25 30\n    }\n    includedir /etc/xinetd.d\n    '
 tmpl = ('\n    service %s\n    {\n       disable         = %s\n    }\n    ' % (svc, disable))
 return {'/etc/xinetd.conf': defaults, ('/etc/xinetd.d/%s' % svc): tmpl}

def GenXinetd ( svc = 'test' , disable = 'no' ) : defaults = '\n    defaults\n    {\n       instances      = 60\n       log_type       = SYSLOG     authpriv\n       log_on_success = HOST PID\n       log_on_failure = HOST\n       cps            = 25 30\n    }\n    includedir /etc/xinetd.d\n    ' tmpl = ( '\n    service %s\n    {\n       disable         = %s\n    }\n    ' % ( svc , disable ) ) return { '/etc/xinetd.conf' : defaults , ( '/etc/xinetd.d/%s' % svc ) : tmpl }
generate xinetd file .