summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-10 20:47:15 -0600
committerRenato Botelho <renato@netgate.com>2016-09-13 14:34:20 -0300
commit7066f0cce295a8cbae046bec7fcb1dfebbf74dd9 (patch)
tree276fcca5a2ca2e604f50f83bae98e688a4f23229 /src/usr
parent6a7644470031c779550d87eb4530c19c6aaff244 (diff)
downloadpfsense-7066f0cce295a8cbae046bec7fcb1dfebbf74dd9.zip
pfsense-7066f0cce295a8cbae046bec7fcb1dfebbf74dd9.tar.gz
Allow packages to request syslogd log socket to be created inside chroot by specifying it in /package/logging/logsocket element. Implements #4898.
Example: <package> <logging> <logsocket>/var/appname/var/run/log</logsocket> </logging> </package> (cherry picked from commit ab31acb937792bdedef11fcdbd1d98ad126ebc0b)
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/status_pkglogs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_pkglogs.php b/src/usr/local/www/status_pkglogs.php
index 3f7b697..ef8d576 100644
--- a/src/usr/local/www/status_pkglogs.php
+++ b/src/usr/local/www/status_pkglogs.php
@@ -81,9 +81,9 @@ $i = 0;
$pkgwithlogging = false;
$apkg = $_GET['pkg'];
if (!$apkg) { // If we aren't looking for a specific package, locate the first package that handles logging.
- if ($config['installedpackages']['package'] <> "") {
+ if (isset($config['installedpackages']['package'])) {
foreach ($config['installedpackages']['package'] as $package) {
- if (is_array($package['logging'])) {
+ if (isset($package['logging']['logfilename']) && '' != $package['logging']['logfilename']) {
$pkgwithlogging = true;
$apkg = $package['name'];
$apkgid = $i;
OpenPOWER on IntegriCloud