本文整理汇总了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;未经允许,请勿转载。 |
请发表评论