Add systemd backed vsftpd service
[mirror/dsa-puppet.git] / modules / vsftpd / templates / systemd-vsftpd.service.erb
diff --git a/modules/vsftpd/templates/systemd-vsftpd.service.erb b/modules/vsftpd/templates/systemd-vsftpd.service.erb
new file mode 100644 (file)
index 0000000..16060e2
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=vsftpd <%= @name %>
+
+[Service]
+ExecStart=-/usr/sbin/vsftpd <%= @fname %>
+StandardInput=socket
+StandardError=journal
+CapabilityBoundingSet=CAP_SYS_CHROOT CAP_SETUID CAP_SETGID
+PrivateDevices=true
+ProtectHome=true
+ProtectSystem=full