On Wed, 21 Nov 2012, Michael Biebl wrote:
Hi David,
2012/11/21 David Lang <[email protected]>
These are all issues with the default config file.
If you use an appropriate config file is there any reason to believe that
the packages will have any problems?
In any case, if you install a new version, won't it ask you if you want to
keep the old config file or upgrade to the new version? or does this only
happen if the old config file has been modified?
First, the issue about library dependencies has nothing to do with the config
file. You will have to backport the relevant libraries to, say 12.04 (LTS).
There is no way around it.
I missed that there were library dependancies, do you know what they are?
Second, the configuration file issue is indeed a bit special and how dpkg
treats "conffile"s.
If you upgrade from the Ubuntu package in precise [1] to my Debian
packages, the /etc/rsyslog.d/50-default.conf file will *not* be removed by
dpkg.
It's how dpkg treats obsoletes conffiles. They will be marked as obsolete
in the dpkg database, but they won't be cleaned up automatically.
This has to be done by the package itself.
If you simply use my Debian package, you will end up with a
/etc/rsyslog.conf from the Debian package and an obsolete
/etc/rsyslog.d/50-default.conf from the old Ubuntu package.
This means, everything would be logged twice.
Not sure if that was confusing or not. If you need more details, I'm happy
to follow up on this.
The main point I was thinking that I was making was that the problems you were
describing were all with the default config files.
In practice, I don't see this as a huge problem. If someone is interested enough
to want to upgrade rsyslog to the latest version, they are wanting to do stuff
beyond what the default configs do, and so saying something along the lines of
'these packages put in configs that won't work with Ubuntu, write your own
configs" seems very reasonable to me, although I agree it would not be a
reasonable upgrade to add to a repository and push out to unsuspecting users.
Thanks for the explination of how dpkg handles config files. I knew it has some
management of them, but I've never had to figure out the details of it. On my
desktop systems it mostly 'just works' and on my server systems I'm manually
managing the config files independant of what dpkg does so it doesn't matter. :)
David Lang
Cheers,
Michael
[1] http://packages.ubuntu.com/precise/rsyslog
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.