mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 23:36:58 +00:00
startall: remove timeout, wait forever
This commit is contained in:
parent
e9619b93bb
commit
3947d0a069
@ -1291,10 +1291,12 @@ __PACKAGE__->register_method ({
|
|||||||
|
|
||||||
$rpcenv->{type} = 'priv'; # to start tasks in background
|
$rpcenv->{type} = 'priv'; # to start tasks in background
|
||||||
|
|
||||||
# wait up to 60 seconds for quorum
|
if (!PVE::Cluster::check_cfs_quorum(1)) {
|
||||||
for (my $i = 60; $i >= 0; $i--) {
|
print "waiting for quorum ...\n";
|
||||||
last if PVE::Cluster::check_cfs_quorum($i != 0 ? 1 : 0);
|
do {
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
} while (!PVE::Cluster::check_cfs_quorum(1));
|
||||||
|
print "got quorum\n";
|
||||||
}
|
}
|
||||||
my $autostart = $force ? undef : 1;
|
my $autostart = $force ? undef : 1;
|
||||||
my $startList = &$get_start_stop_list($nodename, $autostart);
|
my $startList = &$get_start_stop_list($nodename, $autostart);
|
||||||
|
Loading…
Reference in New Issue
Block a user