4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
9 push(@rv, $config{'portsentry_config'})
10 if (&has_command($config{'portsentry'}));
11 push(@rv, $config{'hostsentry_config'})
12 if (-r $config{'hostsentry'});
13 push(@rv, $config{'logcheck'})
14 if (&has_command($config{'logcheck'}));
19 # Called before the files are actually read
26 # Called after the files are actually read
33 # Called before the files are restored from a backup
39 # post_restore(&files)
40 # Called after the files are restored from a backup
43 if (&has_command($config{'portsentry'})) {
44 # Re-start portsentry, if running
45 local @pids = &get_portsentry_pids();
48 local $err = &start_portsentry();
49 return $err if ($err);
52 if (&has_command($config{'hostsentry'})) {
53 # Re-start hostsentry, if running
54 $pid = &get_hostsentry_pid();
57 local $err = &start_hostsentry();
58 return $err if ($err);