Ejemplo n.º 1
0
function exec_openvz_tc()
{
    lxshell_background("sh", "__path_program_etc/openvz_tc.sh");
}
Ejemplo n.º 2
0
 static function exec_livemigrate($class, $name, $param)
 {
     lxshell_background("__path_php_path", "../bin/common/livemigrate.php", "--priority=low", "--class={$class}", "--name={$name}", "--v-syncserver={$param['syncserver']}");
 }
Ejemplo n.º 3
0
function exec_justdb_collectquota()
{
    lxshell_background("__path_php_path", "../bin/collectquota.php", "--just-db=true");
}
Ejemplo n.º 4
0
function start_portmonitor()
{
    dprint("Starting portmonitor\n");
    system("pkill -f lxportmonitor.php");
    lxshell_background("__path_php_path", "../bin/common/lxportmonitor.php", "--data-server=localhost");
}
Ejemplo n.º 5
0
 static function execUpdate()
 {
     lxshell_background("__path_php_path", "../bin/update.php");
 }
Ejemplo n.º 6
0
function execSisinfoc()
{
    dprint("execing sisinfoc\n");
    lxshell_background("__path_php_path", "../bin/sisinfoc.php");
}
Ejemplo n.º 7
0
function execSisinfoc()
{
    log_log("cron_exec", "Starting SISInfoC\n");
    lxshell_background("__path_php_path", "../bin/sisinfoc.php");
}
Ejemplo n.º 8
0
 static function execbackupphp($class, $name, $param)
 {
     foreach ($param as $k => $v) {
         if (csb($k, "backupextra_")) {
             $string[] = "--v-{$k}={$v}";
         }
     }
     $fname = $param['backup_to_file_f'];
     $fname = str_replace(";", "", $fname);
     $fname = str_replace("/", "", $fname);
     lxshell_background("__path_php_path", "../bin/common/backup.php", "--class={$class}", "--name={$name}", "--v-backup_file_name={$fname}", $string[0]);
 }