當前位置: 首頁>>代碼示例>>PHP>>正文


PHP system_syslogd_start函數代碼示例

本文整理匯總了PHP中system_syslogd_start函數的典型用法代碼示例。如果您正苦於以下問題:PHP system_syslogd_start函數的具體用法?PHP system_syslogd_start怎麽用?PHP system_syslogd_start使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了system_syslogd_start函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: clear_all_log_files

function clear_all_log_files()
{
    killbyname('syslogd');
    $log_files = array("system", "filter", "dhcpd", "vpn", "pptps", "poes", "l2tps", "openvpn", "portalauth", "ipsec", "ppps", "relayd", "wireless", "lighttpd", "ntpd", "gateways", "resolver", "routing");
    foreach ($log_files as $lfile) {
        clear_log_file("/var/log/{$lfile}.log", false);
    }
    system_syslogd_start();
    killbyname("dhcpd");
    services_dhcpd_configure();
}
開發者ID:Toudix,項目名稱:core,代碼行數:11,代碼來源:diag_logs_settings.php

示例2: clear_all_log_files

function clear_all_log_files()
{
    killbyname('syslogd');
    $clog_files = array('dhcpd', 'filter', 'gateways', 'ipsec', 'l2tps', 'lighttpd', 'ntpd', 'openvpn', 'poes', 'portalauth', 'ppps', 'pptps', 'relayd', 'resolver', 'routing', 'system', 'vpn', 'wireless');
    $log_files = array('squid/access', 'squid/cache', 'squid/store');
    foreach ($clog_files as $lfile) {
        clear_clog("/var/log/{$lfile}.log", false);
    }
    foreach ($log_files as $lfile) {
        clear_log("/var/log/{$lfile}.log", false);
    }
    system_syslogd_start();
    killbyname('dhcpd');
    services_dhcpd_configure();
}
開發者ID:8191,項目名稱:opnsense-core,代碼行數:15,代碼來源:diag_logs_settings.php

示例3: unset

        $config['syslog']['nologprivatenets'] = $_POST['logprivatenets'] ? false : true;
        $config['syslog']['nologlighttpd'] = $_POST['loglighttpd'] ? false : true;
        $config['syslog']['rawfilter'] = $_POST['rawfilter'] ? true : false;
        if (is_numeric($_POST['filterdescriptions']) && $_POST['filterdescriptions'] > 0) {
            $config['syslog']['filterdescriptions'] = $_POST['filterdescriptions'];
        } else {
            unset($config['syslog']['filterdescriptions']);
        }
        if ($config['syslog']['enable'] == false) {
            unset($config['syslog']['remoteserver']);
            unset($config['syslog']['remoteserver2']);
            unset($config['syslog']['remoteserver3']);
        }
        write_config();
        $retval = 0;
        $retval = system_syslogd_start();
        if ($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock']) || $oldnologdefaultpass !== isset($config['syslog']['nologdefaultpass']) || $oldnologbogons !== isset($config['syslog']['nologbogons']) || $oldnologprivatenets !== isset($config['syslog']['nologprivatenets'])) {
            $retval |= filter_configure();
        }
        $savemsg = get_std_save_message($retval);
        if ($oldnologlighttpd !== isset($config['syslog']['nologlighttpd'])) {
            ob_flush();
            flush();
            log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
            send_event("service restart webgui");
            $savemsg .= "<br />" . gettext("WebGUI process is restarting.");
        }
        filter_pflog_start(true);
    }
}
$pgtitle = array(gettext("Status"), gettext("System logs"), gettext("Settings"));
開發者ID:rstevens011,項目名稱:pfsense,代碼行數:31,代碼來源:diag_logs_settings.php

示例4: system_syslogd_start

<?php

require_once "/etc/inc/pkg-utils.inc";
require_once "/etc/inc/system.inc";
system_syslogd_start();
開發者ID:LFCavalcanti,項目名稱:pfsense-packages,代碼行數:5,代碼來源:postfix_syslog.php


注:本文中的system_syslogd_start函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。