1.  # This configuration implements automatic synchronization of FTP uploads.
   2.  # When the FTP connection is closed, the running instance of vsftpd finishes
   3.  # which triggers the `return-code' rule.  The rule invokes wydawca, which
   4.  # verifies the upload and synchronizes the distribution directory, if
   5.  # necessary.
   6.  
   7.  component ftp {
   8.    return-code EX_OK {
   9.       exec "/usr/sbin/wydawca --spool ftp-upload";
  10.    }
  11.    mode inetd;
  12.    socket "inet://0.0.0.0:ftp";
  13.    socket "unix:/tmp/socket";
  14.    umask 027;
  15.    program /usr/sbin/vsftpd;
  16.    command "vsftpd /etc/vsftpd-upload.conf";
  17.  }