# This configuration implements automatic synchronization of FTP uploads. # When the FTP connection is closed, the running instance of vsftpd finishes # which triggers the `return-code' rule. The rule invokes wydawca, which # verifies the upload and synchronizes the distribution directory, if # necessary. component ftp { return-code EX_OK { exec "/usr/sbin/wydawca --spool ftp-upload"; } mode inetd; socket "inet://0.0.0.0:ftp"; socket "unix:/tmp/socket"; umask 027; program /usr/sbin/vsftpd; command "vsftpd /etc/vsftpd-upload.conf"; }