Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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 -%>
}