Commit 8d65afe8 authored by Franco Fichtner's avatar Franco Fichtner

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

parent a1609d2d
......@@ -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']))
......
......@@ -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
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment