|
|
@ -98,6 +98,12 @@ class Container extends CPHPDatabaseRecordClass
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function GetCurrentStatus()
|
|
|
|
public function GetCurrentStatus()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if($this->sStatus == CVM_STATUS_SUSPENDED || $this->sStatus == CVM_STATUS_TERMINATED)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->sStatus;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$command = "vzctl status {$this->sInternalId}";
|
|
|
|
$command = "vzctl status {$this->sInternalId}";
|
|
|
|
|
|
|
|
|
|
|
@ -117,6 +123,7 @@ class Container extends CPHPDatabaseRecordClass
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function GetStatusText()
|
|
|
|
public function GetStatusText()
|
|
|
|
{
|
|
|
|
{
|
|
|
|