コード例 #1
0
ファイル: exec.initslapd.php プロジェクト: brucewu16899/1.6.x
    netdiscover();
    exit;
}
if ($argv[1] == "--ufdbcat") {
    $GLOBALS["OUTPUT"] = true;
    ufdbcat();
    exit;
}
if ($argv[1] == "--sarg-web") {
    $GLOBALS["OUTPUT"] = true;
    sargweb();
    exit;
}
if ($argv[1] == "--syncthing") {
    $GLOBALS["OUTPUT"] = true;
    syncthing();
    exit;
}
if ($argv[1] == "--hypercache-web") {
    $GLOBALS["OUTPUT"] = true;
    hypercache_http();
    exit;
}
$unix = new unix();
if ($GLOBALS["VERBOSE"]) {
    echo "Open unix class\n";
}
$PID_FILE = "/etc/artica-postfix/pids/" . basename(__FILE__);
$PID_TIME = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".time";
$timeF = $unix->file_time_min($PID_TIME);
if (!$GLOBALS["FORCE"]) {
コード例 #2
0
ファイル: exec.status.php プロジェクト: BillTheBest/1.6.x
 if ($argv[1] == "--disks") {
     $GLOBALS["VERBOSE"] = true;
     $unix = new unix();
     print_r($unix->ALL_DISKS_STATUS());
     exit;
 }
 if ($argv[1] == "--watchdog-me") {
     watchdog_me();
     exit;
 }
 if ($argv[1] == "--freshclam") {
     echo freshclam();
     exit;
 }
 if ($argv[1] == "--syncthing") {
     echo syncthing();
     exit;
 }
 if ($argv[1] == "--c-icap") {
     echo c_icap_master_status() . "\n" . clamd() . "\n" . freshclam();
     exit;
 }
 if ($argv[1] == "--kav4proxy") {
     echo kav4Proxy_status();
     exit;
 }
 if ($argv[1] == "--dansguardian") {
     echo dansguardian_master_status();
     exit;
 }
 if ($argv[1] == "--wifi") {