<?php include_once "htmllib/lib/include.php"; include_once "htmllib/lib/lxserverlib.php"; kill_and_save_pid('hypervm.php'); debug_for_backend(); $global_dontlogshell = true; execSisinfoc(); system("iptables -t nat -L"); vpstraffic__openvz::iptables_delete(); vpstraffic__openvz::iptables_create(); if ($argv[1] === 'master') { start_portmonitor(); } dprint("Starting Server\n"); system("echo 16536 > /proc/sys/net/ipv4/tcp_max_tw_buckets_ve"); system("echo 256 > /proc/sys/net/ipv4/tcp_max_tw_kmem_fraction"); if (is_openvz()) { //system("sysctl net.ipv4.conf.all.proxy_arp=1"); } lxshell_php("../bin/fix/fixippool.php"); $global_dontlogshell = false; lxserver_main(); function timed_execution() { global $global_dontlogshell; $global_dontlogshell = true; timed_exec(2, "checkRestart"); timed_exec(2 * 5, "execSisinfoc"); $global_dontlogshell = false; }
<?php include_once "htmllib/lib/include.php"; include_once "htmllib/lib/lxserverlib.php"; kill_and_save_pid('lxserver'); debug_for_backend(); lxserver_main(); function timed_execution() { global $global_dontlogshell; $global_dontlogshell = true; if (windowsOS()) { return; } timed_exec(2, "checkRestart"); timed_exec(2 * 5, "execSisinfoc"); $global_dontlogshell = false; } function execSisinfoc() { dprint("execing sisinfoc\n"); lxshell_background("__path_php_path", "../bin/sisinfoc.php"); }