Beispiel #1
0
if($argv[1]=="--functions"){
	$arr = get_defined_functions();
	print_r($arr);
	die();
}



if($argv[1]=="--all-squid"){
	$conf[]=dansguardian_tail_status();
	$conf[]=squid_master_status();
	$conf[]=c_icap_master_status();
	$conf[]=dansguardian_master_status();
	$conf[]=kav4Proxy_status();
	$conf[]=proxy_pac_status();
	$conf[]=squid_tail();
	$conf[]=squidguardweb();
	$conf[]=ufdbguardd();
	echo @implode("\n",$conf);
	die();
}
if($argv[1]=="--zarafa"){
	$conf[]=zarafa_web();
	$conf[]=zarafa_ical();
	$conf[]=zarafa_dagent();
	$conf[]=zarafa_monitor();
	$conf[]=zarafa_gateway();
	$conf[]=zarafa_spooler();
	$conf[]=zarafa_server();
	$conf[]=zarafa_licensed();
	$conf[]=zarafa_indexer();
Beispiel #2
0
    hypercache_http();
    exit;
}
if ($argv[1] == "--not-shutdown") {
    $GLOBALS["OUTPUT"] = true;
    not_shutdown();
    exit;
}
if ($argv[1] == "--influx") {
    $GLOBALS["OUTPUT"] = true;
    influx();
    exit;
}
if ($argv[1] == "--squid-tail") {
    $GLOBALS["OUTPUT"] = true;
    squid_tail();
    exit;
}
if ($argv[1] == "--hypercache-tail") {
    $GLOBALS["OUTPUT"] = true;
    hypercache_tail();
    exit;
}
if ($argv[1] == "--ldap-client") {
    $GLOBALS["OUTPUT"] = true;
    ldap_client();
    exit;
}
if ($argv[1] == "--policyd-weight") {
    $GLOBALS["OUTPUT"] = true;
    policyd_weight();