Changeset 1194


Ignore:
Timestamp:
Feb 16, 2011, 12:47:06 PM (9 years ago)
Author:
bruno
Message:
  • Fix halt invokation which was broken (full path now)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1192 r1194  
    19941994        my $hoption = "-p";
    19951995        my $hpath = pb_distro_get_param($pbos,pb_conf_get("oscmdpath-halt"));
    1996         # Solaris doesn't support -p and has halt elsewhere
     1996        # Solaris doesn't support -p of halt
    19971997        if ($pbos->{'type'} eq "pkg") {
    19981998            $hoption = "" ;
    19991999        }
    2000         pb_system("$shcmd \"sudo $hpath/halt $hoption \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $v halt (pid $vmpid)");
     2000        pb_system("$shcmd \"sudo $hpath $hoption \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $v halt (pid $vmpid)");
    20012001    }
    20022002    if (($cmt =~ /^VE/) && ($snapme != 0)) {
     
    29662966    if ($vtype =~ /^vm/) {
    29672967        my $hpath = pb_distro_get_param($pbos,pb_conf_get("oscmdpath-halt"));
    2968         my @sudocmds = pb_get_sudocmds($pbos,$ntpline,"$hpath/halt");
     2968        my @sudocmds = pb_get_sudocmds($pbos,$ntpline,$hpath);
    29692969        print SCRIPT << "EOF";
    29702970# This is needed in order to be able on VM to halt the machine from the $pbac->{$ENV{'PBPROJ'}} account at least
Note: See TracChangeset for help on using the changeset viewer.