예제 #1
0
파일: hd.php 프로젝트: BillTheBest/1.6.x
function unlink_disk()
{
    $unix = new unix();
    $php = $unix->LOCATE_PHP5_BIN();
    $cmd = "{$php} /usr/share/artica-postfix/exec.system.build-partition.php --unlink \"{$_GET["unlink-disk"]}\"";
    writelogs_framework($cmd, __FUNCTION__, __FILE__);
    NOHUP_EXEC($cmd);
}
예제 #2
0
파일: cmd.php 프로젝트: articatech/artica
function EnableEmergingThreats()
{
    $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.emerging.threats.php";
    NOHUP_EXEC($cmd);
}
예제 #3
0
파일: cmd.php 프로젝트: brucewu16899/1.6.x
function AUTOFS_RELOAD()
{
    $unix = new unix();
    $davfs = $unix->find_program("mount.davfs");
    $nohup = $unix->find_program("nohup");
    if (is_file($davfs)) {
        $cmd = trim($nohup . " " . LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.AutoFS.php --davfs >/dev/null &");
        shell_exec($cmd);
        return;
    }
    $cmd = trim($nohup . " /etc/init.d/autofs reload >/dev/null &");
    writelogs_framework("{$cmd}", __FUNCTION__, __FILE__, __LINE__);
    shell_exec($cmd);
    $cmd = "/etc/init.d/artica-status reload";
    $unix->THREAD_COMMAND_SET($cmd);
    NOHUP_EXEC("/etc/init.d/monit restart");
}