4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
9 foreach $f ("ftpaccess", "ftpconversions", "ftpgroups", "ftphosts", "ftpusers"){
10 push(@rv, $config{$f}) if ($config{$f});
16 # Called before the files are actually read
23 # Called after the files are actually read
30 # Called before the files are restored from a backup
36 # post_restore(&files)
37 # Called after the files are restored from a backup
40 local ($inet, $inet_mod) = &running_under_inetd();
42 local $pid = &check_pid_file($config{'pid_file'});
44 &kill_logged('TERM', $in{'pid'});
45 &system_logged("$config{'ftpd_path'} -l -a -S >/dev/null 2>&1 </dev/null");