projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add systemd backed vsftpd service
[mirror/dsa-puppet.git]
/
modules
/
vsftpd
/
templates
/
systemd-vsftpd.socket.erb
diff --git a/modules/vsftpd/templates/systemd-vsftpd.socket.erb
b/modules/vsftpd/templates/systemd-vsftpd.socket.erb
new file mode 100644
(file)
index 0000000..
ea4cdc5
--- /dev/null
+++ b/
modules/vsftpd/templates/systemd-vsftpd.socket.erb
@@ -0,0
+1,13
@@
+[Unit]
+Description=vsftpd <%= @name %> (socket)
+
+[Socket]
+<% @binds.each do |bind| -%>
+ListenStream=<%= bind %>:21
+<% end -%>
+Accept=true
+FreeBind=true
+MaxConnections=<%= @max_clients %>
+
+[Install]
+WantedBy=sockets.target