Add systemd backed rsync service
[mirror/dsa-puppet.git] / modules / rsync / templates / systemd-rsyncd-stunnel.socket.erb
1 [Unit]
2 Description=stunnel for rsync daemon <%= @name %> (socket)
3
4 [Socket]
5 <% @binds.each do |bind| -%>
6 ListenStream=<%= bind %>:1873
7 <% end -%>
8 Accept=true
9 FreeBind=true
10 MaxConnections=<%= @max_clients %>
11
12 [Install]
13 WantedBy=sockets.target