Exemple #1
0
    exit;
}
if (isset($_GET["single-status"])) {
    status_single();
    exit;
}
if (isset($_GET["lxc-ps"])) {
    lxc_ps();
    exit;
}
if (isset($_GET["vps-restart"])) {
    vps_restart();
    exit;
}
if (isset($_GET["vps-stop"])) {
    vps_stop();
    exit;
}
if (isset($_GET["vps-start"])) {
    vps_start();
    exit;
}
if (isset($_GET["vps-running"])) {
    vps_running();
    exit;
}
if (isset($_GET["lxc-events"])) {
    lxc_events();
    exit;
}
if (isset($_GET["vps-reconfig"])) {
Exemple #2
0
    die;
}
if ($argv[1] == "--status-single") {
    echo vps_servers_status_single($argv[2]);
    die;
}
if ($argv[1] == "--lxc-ps") {
    lxc_ps($argv[2]);
    die;
}
if ($argv[1] == "--lxc-restart") {
    vps_restart($argv[2]);
    die;
}
if ($argv[1] == "--lxc-stop") {
    vps_stop($argv[2]);
    die;
}
if ($argv[1] == "--lxc-start") {
    vps_start($argv[2]);
    die;
}
if ($argv[1] == "--lxc-freeze") {
    vps_freeze($argv[2]);
    die;
}
if ($argv[1] == "--lxc-unfreeze") {
    vps_unfreeze($argv[2]);
    die;
}
if ($argv[1] == "--watchdog") {