mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2024-12-25 23:21:43 +03:00
vncproxy: wait max 10s for the socket if it does not exist
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
This commit is contained in:
parent
b7b1ac9d04
commit
58504d5edf
@ -1110,6 +1110,9 @@ __PACKAGE__->register_method({
|
||||
my $realcmd = sub {
|
||||
my $upid = shift;
|
||||
|
||||
my $c = 0;
|
||||
while ( ++$c < 10 && !-e "/var/run/qemu-server/$vmid.vnc" ) { sleep(1); }
|
||||
|
||||
syslog('info', "starting vnc proxy $upid\n");
|
||||
|
||||
my $qmcmd = [@$remcmd, "/usr/sbin/qm", 'vncproxy', $vmid];
|
||||
|
Loading…
Reference in New Issue
Block a user