function exec_openvz_tc() { lxshell_background("sh", "__path_program_etc/openvz_tc.sh"); }
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']}"); }
function exec_justdb_collectquota() { lxshell_background("__path_php_path", "../bin/collectquota.php", "--just-db=true"); }
function start_portmonitor() { dprint("Starting portmonitor\n"); system("pkill -f lxportmonitor.php"); lxshell_background("__path_php_path", "../bin/common/lxportmonitor.php", "--data-server=localhost"); }
static function execUpdate() { lxshell_background("__path_php_path", "../bin/update.php"); }
function execSisinfoc() { dprint("execing sisinfoc\n"); lxshell_background("__path_php_path", "../bin/sisinfoc.php"); }
function execSisinfoc() { log_log("cron_exec", "Starting SISInfoC\n"); lxshell_background("__path_php_path", "../bin/sisinfoc.php"); }
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]); }