[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rsyslog is in F8



On Thu, 2007-07-19 at 13:48 -0700, Steve G wrote:
> >> Hmmm, It use rsyslog.conf.
> >> cp syslog.conf rsyslog.conf is done, because we want to keep and use
> >> previous configuration. Or do you want your custom configuration be
> >> dropped and replaced by default one? :-)
> >
> >For rsyslog to be a drop in replacement, it should use the same config 
> >file named the same in the same location IMO.
> 
> It was supposed to. I had created a file option in /etc/sysconfig/rsyslog that
> could be set so you could choose one or the other...that seems to have been
> dropped.
> 
> The problem that we faced is that removing sysklogd causes syslog.conf to be
> renamed to syslog.conf.rpmsave...so we have to look for that file and rename it
> if the configuration file does not exist.
> 
> The basic theory was supposed to be:
> 
> 1) if neither syslog.conf or syslog.conf.rpmsave exist, modify
> /etc/sysconfig/rsyslog use rsyslog.conf
> 2) if syslog.conf doesn't exist and syslog.conf.rpmsave exists, rename it to
> syslog.conf. /etc/sysconfig/rsyslog defaults to syslog.conf so no change needed
> 3) use the config file option -f in the initscript to choose syslog.conf or
> rsyslog.conf which comes from /etc/sysconfig/rsyslog

Please no, this is ugly to have in some situations rsyslog using
syslog.conf and in others rsyslog.conf.

There are advantages and disadvantages on both sides either keeping the
old config/init script names or using the new with 'r'. We choose the
second one and that's it. We would be just facing other issues if we
choose the first one. (e.g. Why package named rsyslog uses config file
syslog.conf. Or why I cannot install both rsyslog and old sysklogd for
testing purposes (with --force). And surely there are others.)
-- 
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]