mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
16 lines
302 B
Perl
Executable File
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("");
|
|
|