#!/usr/local/bin/perl
# apply.cgi
# Apply config file changes with a HUP signal

require './sshd-lib.pl';
&ReadParse();
if ($config{'restart_cmd'})
   {
    $out = `$config{'restart_cmd'} 2>&1 </dev/null`;
    if ($?) {&error($out);}
   } else {
           &kill_logged('HUP', $in{'pid'});
          }
&webmin_log("apply");
&redirect("");

