syslog: move ppp.log to ppps.log to prevent newsyslog clobbering it

This commit is contained in:
Franco Fichtner 2015-07-01 16:39:46 +02:00
parent a1609d2d6b
commit 8d65afe8cd
3 changed files with 5 additions and 5 deletions

View File

@ -667,7 +667,7 @@ function system_syslogd_start()
$syslogconf .= "!ppp\n";
if (!isset($syslogcfg['disablelocallogging']))
$syslogconf .= "*.* {$log_directive}/var/log/ppp.log\n";
$syslogconf .= "*.* {$log_directive}/var/log/ppps.log\n";
$syslogconf .= "!pptps\n";
if (!isset($syslogcfg['disablelocallogging']))

View File

@ -186,7 +186,7 @@ chmod 1777 /tmp
echo -n "."
DISABLESYSLOGCLOG=`/usr/bin/grep -c disablesyslogclog /conf/config.xml`
ENABLEFIFOLOG=`/usr/bin/grep -c usefifolog /conf/config.xml`
LOG_FILES="system filter dhcpd vpn pptps poes l2tps openvpn portalauth ipsec ppp relayd wireless lighttpd ntpd gateways resolver routing"
LOG_FILES="system filter dhcpd vpn pptps poes l2tps openvpn portalauth ipsec ppps relayd wireless lighttpd ntpd gateways resolver routing"
DEFAULT_LOG_FILE_SIZE=`/usr/local/bin/xmllint --xpath 'string(//opnsense/syslog/logfilesize)' /conf/config.xml`
if [ ! ${DEFAULT_LOG_FILE_SIZE} ]; then

View File

@ -30,7 +30,7 @@
require_once("guiconfig.inc");
$ppp_logfile = '/var/log/ppp.log';
$ppps_logfile = '/var/log/ppps.log';
$nentries = $config['syslog']['nentries'];
if (!$nentries) {
@ -38,7 +38,7 @@ if (!$nentries) {
}
if ($_POST['clear']) {
clear_log_file($ppp_logfile);
clear_log_file($ppps_logfile);
}
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("PPP"));
@ -69,7 +69,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped table-sort">
<?php dump_clog($ppp_logfile, $nentries); ?>
<?php dump_clog($ppps_logfile, $nentries); ?>
</table>
</div>