mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
15 lines
361 B
Perl
Executable File
15 lines
361 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Stop and then re-start the iSCSI server process
|
|
|
|
use strict;
|
|
use warnings;
|
|
no warnings 'redefine';
|
|
no warnings 'uninitialized';
|
|
require './iscsi-target-lib.pl';
|
|
our (%text);
|
|
&error_setup($text{'restart_err'});
|
|
my $err = &restart_iscsi_server();
|
|
&error("<tt>".&html_escape($err)."</tt>") if ($err);
|
|
&webmin_log("restart");
|
|
&redirect("");
|