Files
webmin/wuftpd/restart.cgi
2007-04-12 20:24:50 +00:00

12 lines
302 B
Perl
Executable File

#!/usr/local/bin/perl
# restart.cgi
# Kill all ftpd processes, and restart the FTP server with flags -l -a -S
require './wuftpd-lib.pl';
&ReadParse();
&kill_logged('TERM', $in{'pid'});
&system_logged("$config{'ftpd_path'} -l -a -S >/dev/null 2>&1 </dev/null");
&webmin_log("restart");
&redirect("");