Changeset 1786 in ProjectBuilder
- Timestamp:
- Aug 1, 2013, 10:02:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1780 r1786 376 376 377 377 Check the delivery of the packages on the repository 378 379 =item B<checkps> 380 381 Check the process running the VM concerned 378 382 379 383 =item B<newver> … … 956 960 } elsif ($action =~ /^checkssh$/) { 957 961 pb_announce("Check"); 962 } elsif ($action =~ /^checkps$/) { 963 my ($ptr2) = pb_conf_get("vmcmd"); 964 my $vmcmd = $ptr2->{$ENV{'PBPROJ'}}; 965 my ($vmexist,$vmmport) = pb_check_ps($vmcmd,$ENV{'PBV'}); 966 if (! $vmexist) { 967 pb_log(0,"No VM found for $ENV{'PBV'}\n"); 968 } else { 969 pb_log(0,"Found an existing VM for $ENV{'PBV'} PID: $vmexist - SSH port: $vmmport\n"); 970 } 958 971 } elsif ($action =~ /^sbx2webpkg$/) { 959 972 require DBI; … … 2701 2714 } else { 2702 2715 # Is the SSH port free? if not kill the existing process using it after a build timeout period 2703 my $vmssh = pb_check_ps($tmpcmd, "tcp:127.0.0.1:$nport-:22");2716 my $vmssh = pb_check_ps($tmpcmd,$vmm); 2704 2717 if ($vmssh) { 2705 2718 my $buildtm = $ENV{'PBVMTMOUT'}; … … 4178 4191 next if (! /$vmcmd/); 4179 4192 next if (! /$vmm/); 4180 my ($void1, $void2);4193 my $void1; 4181 4194 ($void1, $vmexist, $vmport) = split(/ +/,$_,3); 4182 4195 pb_log(2,"pb_check_ps $vmport\n"); 4183 $vmport =~ s/.*=tcp \:127\.0\.0\.1\:([0-9]+)-:22.*/$1/;4196 $vmport =~ s/.*=tcp:127\.0\.0\.1:([0-9]+)-:22.*/$1/; 4184 4197 chomp($vmport); 4185 4198 pb_log(2,"pb_check_ps found a VM $vmexist using port $vmport\n");
Note:
See TracChangeset
for help on using the changeset viewer.