Project

General

Profile

Actions

Bug #5210

closed

Package logging entries are not being removed from syslog.conf on package uninstall

Added by Kill Bill about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Package System
Target version:
Start date:
09/27/2015
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

This is what's being added for those packages - /etc/inc/system.inc

$syslogconf .= "!{$package['logging']['facilityname']}\n*.*\t\t\t\t\t\t {$log_directive}{$g['varlog_path']}/{$package['logging']['logfilename']}\n";

This is what's attempted to be removed on uninstall:

remove_text_from_file("/etc/syslog.conf", $pkg_info['logging']['facilityname'] . "\t\t\t\t" . $pkg_info['logging']['logfilename']);

These two very obviously do not match, cannot work.

Actions #1

Updated by Kill Bill about 9 years ago

https://github.com/pfsense/pfsense/pull/1939 (RELENG_2_2)
https://github.com/pfsense/pfsense/pull/1940 (master)

The problem here is that system_syslogd_start() is called at wrong time.

Actions #2

Updated by Renato Botelho about 9 years ago

  • Status changed from New to Feedback
  • Target version set to 2.2.5
  • % Done changed from 0 to 100

Pull requests have been merged. Thanks!

Actions #3

Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

fixed

Actions

Also available in: Atom PDF