Mask the vsftpd service as we are launching it from xinetd
[mirror/dsa-puppet.git] / modules / vsftpd / manifests / site.pp
index f8a71a0..9cdacde 100644 (file)
@@ -48,5 +48,12 @@ define vsftpd::site (
                require     => File[$fname]
        }
 
+       # Mask the vsftpd service as we are using xinetd
+       file { '/etc/systemd/system/vsftpd.service':
+               ensure => 'link',
+               target => '/dev/null',
+               notify => Exec['systemctl daemon-reload'],
+       }
+
        Service['vsftpd']->Service['xinetd']
 }