Suppose my /etc/sysconfig/syslogd have:
SYSLOGD_OPTIONS='-u syslogd -j /var/resolv'
Postscript postscripts/syslog does not do hers work.
Problem is at AWK code:
awk '{if($0 ~ /^SYSLOGD_OPTIONS=|^SYSLOGD_PARAMS=/) {
if ($0 !~ /-r/) {sub(/\"$/, " -r\"", $0)}
if ($0 !~ /-h/) {sub(/\"$/, " -h\"", $0)}
if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/\"$/, " -m 0\"", $0)}
print $0}
else { print $0}}' $sysconfig > $sysconfig.tmp
\"$ is not best way to indicate line with options. Shell script uses two types quotes ' and ".
Pattern \"$ doesn't match line with options in single quotes '.
Compare:
SYSLOGD_OPTIONS='-u syslogd -j /var/resolv' -- NO WORK
SYSLOGD_OPTIONS="-u syslogd -j /var/resolv" -- WORK
See patch for resolve this bug or maybe lookup for better solution.
Checked fix in for next 2.4 build
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 28 days (the time period specified by
the administrator of this Tracker).