| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/virtual-server/ |
Upload File : |
#!/usr/bin/perl
# Kill running scheduled backups
require './virtual-server-lib.pl';
&ReadParse();
&error_setup($text{'running_err'});
@d = split(/\0/, $in{'d'});
@d || &error($text{'running_enone'});
# Get the backups
@running = &list_running_backups();
foreach $sid_pid (@d) {
($sid, $pid) = split(/-/, $sid_pid);
($sched) = grep { $_->{'id'} eq $sid &&
$_->{'pid'} == $pid } @running;
$sched || &error(&text('dsched_erunning', $sid));
&can_backup_sched($sched) ||
&error(&text('dsched_ecannot', $sid));
push(@scheds, $sched);
}
# Kill them
foreach my $sched (@scheds) {
&kill_running_backup($sched);
}
&webmin_log("kill", "scheds", scalar(@scheds));
&redirect("list_running.cgi");