making for consistent names and descriptions
[mirror/dsa-puppet.git] / modules / xinetd / templates / service.erb
index bb71850..80e0c49 100644 (file)
@@ -1,9 +1,11 @@
 service <%= scope.lookupvar('port') %>
 {
+<%- if scope.lookupvar('bind') != '' -%>
        bind            = <%= scope.lookupvar('bind') %>
+<%- end -%>
        id              = <%= scope.lookupvar('id') %>
 
-       socket_type     = <%= scope.lookupvar('stream') %>
+       socket_type     = <%= scope.lookupvar('socket_type') %>
        protocol        = <%= scope.lookupvar('protocol') %>
        flags           = <%= scope.lookupvar('flags') %>
        wait            = <%= scope.lookupvar('wait') %>