- Timestamp:
- Feb 16, 2011, 12:47:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1192 r1194 1994 1994 my $hoption = "-p"; 1995 1995 my $hpath = pb_distro_get_param($pbos,pb_conf_get("oscmdpath-halt")); 1996 # Solaris doesn't support -p and has halt elsewhere1996 # Solaris doesn't support -p of halt 1997 1997 if ($pbos->{'type'} eq "pkg") { 1998 1998 $hoption = "" ; 1999 1999 } 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)"); 2001 2001 } 2002 2002 if (($cmt =~ /^VE/) && ($snapme != 0)) { … … 2966 2966 if ($vtype =~ /^vm/) { 2967 2967 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); 2969 2969 print SCRIPT << "EOF"; 2970 2970 # 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.