예제 #1
0
파일: Process.php 프로젝트: JanHuang/swoole
 /**
  * @param $pid
  * @return int
  */
 public function exists($pid)
 {
     return process_kill($pid, 0);
 }
예제 #2
0
파일: cmd.php 프로젝트: brucewu16899/artica
    exit;
}
if (isset($_GET["CurrentLoad"])) {
    CurrentLoad();
    exit;
}
if (isset($_GET["TaskLastManager"])) {
    TaskLastManager();
    exit;
}
if (isset($_GET["start-all-services"])) {
    StartAllServices();
    exit;
}
if (isset($_GET["kill-pid-number"])) {
    process_kill();
    exit;
}
if (isset($_GET["start-service-name"])) {
    StartServiceCMD();
    exit;
}
if (isset($_GET["stop-service-name"])) {
    StopServiceCMD();
    exit;
}
if (isset($_GET["START-STOP-SERVICES"])) {
    START_STOP_SERVICES();
    exit;
}
if (isset($_GET["monit-status"])) {
예제 #3
0
파일: cmd.php 프로젝트: rsd/artica-1.5

if(isset($_GET["change-mysql-params"])){ChangeMysqlParams();exit;}
if(isset($_GET["mysql-myd-file"])){mysql_myd_file();exit;}
if(isset($_GET["mysql-check"])){mysql_check();exit;}

if(isset($_GET["viewlogs"])){viewlogs();exit;}
if(isset($_GET["LdapdbStat"])){LdapdbStat();exit;}
if(isset($_GET["LdapdbSize"])){LdapdbSize();exit;}
if(isset($_GET["ldap-restart"])){ldap_restart();exit;}
if(isset($_GET["buildFrontEnd"])){buildFrontEnd();exit;}
if(isset($_GET["cpualarm"])){cpualarm();exit;}
if(isset($_GET["CurrentLoad"])){CurrentLoad();exit;}
if(isset($_GET["TaskLastManager"])){TaskLastManager();exit;}
if(isset($_GET["start-all-services"])){StartAllServices();exit;}
if(isset($_GET["kill-pid-number"])){process_kill();exit;}
if(isset($_GET["kill-pid-single"])){process_kill_single();exit;}
if(isset($_GET["postmaster-cron"])){postmaster_cron();exit;}
if(isset($_GET["start-service-name"])){StartServiceCMD();exit;}
if(isset($_GET["stop-service-name"])){StopServiceCMD();exit;}
if(isset($_GET["START-STOP-SERVICES"])){START_STOP_SERVICES();exit;}
if(isset($_GET["monit-status"])){MONIT_STATUS();exit;}
if(isset($_GET["monit-restart"])){MONIT_RESTART();exit;}
if(isset($_GET["restart-http-engine"])){LIGHTTPD_RESTART();exit;}
if(isset($_GET["fcron-restart"])){FCRON_RESTART();exit;}
if(isset($_GET["restart-mldonkey"])){MLDONKEY_RESTART();exit;}
if(isset($_GET["restart-artica-maillog"])){ARTICA_MAILLOG_RESTART();exit;}
if(isset($_GET["notifier-restart"])){EMAILRELAY_RESTART();exit;}

if(isset($_GET["cdir-calc"])){IP_CALC_CDIR();exit;}
if(isset($_GET["ip-get-default-getway"])){getDefaultGateway();exit;}