# Managed by Puppet via xinetd::config class # default: on # description: <%= description %> service <%= service %> { disable = no <% if name != service then -%> id = <%= name %> <% end -%> <% if server_type != '' then -%> type = <%= server_type %> <% end -%> <% if protocol != '' then -%> protocol = <%= protocol %> <% end -%> <% if port != '' then -%> port = <%= port %> <% end -%> <% if protocol == 'udp' then -%> socket_type = dgram wait = yes <% else -%> socket_type = stream wait = no <% end -%> <% if flags != '' then -%> flags = <%= flags %> <% end -%> user = <%= user %> group = <%= group %> <% if server_type !~ /INTERNAL/ then -%> server = <%= server %> <% if server_args != '' then -%> server_args = <%= server_args %> <% end -%> libwrap = <%= server[/[^\/]+$/] %> <% end -%> <% if cps != '' then -%> cps = <%= cps %> <% end -%> <% if per_source != '' then -%> per_source = <%= per_source %> <% end -%> <% if instances != '' then -%> instances = <%= instances %> <% end -%> <% if env != '' then -%> env = <%= env %> <% end -%> <% if log_type != 'NONE' then if (server_type !~ /INTERNAL/) and (protocol != 'udp') then if log_type != '' then -%> log_type = SYSLOG <%= log_type %> <% else -%> log_type = SYSLOG daemon <% end -%> log_on_success = PID HOST DURATION log_on_failure = HOST <% end -%> <% end -%> }