Files
webmin/inetd/restart_inetd.cgi
2007-04-12 20:24:50 +00:00

16 lines
302 B
Perl
Executable File

#!/usr/local/bin/perl
# restart_inetd.cgi
# Send a HUP signal to the inetd process
require './inetd-lib.pl';
$whatfailed = $text{'error_restart'};
$out = &backquote_logged("$config{'restart_command'} 2>&1");
if ($?) {
# Failed to signal inetd
&error($out);
}
&webmin_log("apply");
&redirect("");