Xymon Mailing List Archive search

Configuration Files (Feature Request / Question)

3 messages in this thread

list Bob Gordon · Tue, 8 Aug 2006 10:06:54 -0700 ·
Hello -

It is my understanding that the configuration files located in
$HOBBITROOT/etc are not overwritten during an upgrade.  Where would I find
the configuration files that would have been installed had this been a new
installation?   (A few of the admins are looking for them...)

Any chance that the installer can be modified to save the default
configuration files to $HOBBITROOT/etc/DIST (or some other directory) in the
event of an upgrade installation?

Thanks -

-- 
--==[ Bob Gordon ]==--
list Jerry Yu · Tue, 8 Aug 2006 15:48:00 -0400 ·
hmm, RPM built with the spec bundled actually does
1) overwrite some, saving original ones to   blah.cfg.rpmsave
2) leave some alone, saving the new config to blah.cfg.rpmorig

So, I'd think the 'problem' and/or solution is/should-be specific to the
distro and ways of installation (compile/make/install, or standard packaging
like pkg/rpm/deb, etc.)
quoted from Bob Gordon

On 8/8/06, Bob Gordon <user-488dbf322a4e@xymon.invalid> wrote:
Hello -

It is my understanding that the configuration files located in
$HOBBITROOT/etc are not overwritten during an upgrade.  Where would I find
the configuration files that would have been installed had this been a new
installation?   (A few of the admins are looking for them...)

Any chance that the installer can be modified to save the default
configuration files to $HOBBITROOT/etc/DIST (or some other directory) in the
event of an upgrade installation?

Thanks -

--
--==[ Bob Gordon ]==--
list Henrik Størner · Tue, 8 Aug 2006 22:13:37 +0200 ·
quoted from Bob Gordon
On Tue, Aug 08, 2006 at 10:06:54AM -0700, Bob Gordon wrote:
It is my understanding that the configuration files located in
$HOBBITROOT/etc are not overwritten during an upgrade.
If you use one of the package managers (probably Linux specific - but 
then either RPM or Debian's dpkg), then it's up to the package manager
to decide what files get overwritten, updated or just left alone.

If you just compile Hobbit from source and do a "make install", it will
attempt to merge your current configuration with any new settings. This
applies to hobbitserver.cfg, hobbitlaunch.cfg, hobbitcgi.cfg and
hobbitgraph.cfg. The webserver templates - *_header, *_footer, *_form -
are updated if you haven't modified them yourself.
quoted from Jerry Yu
Where would I find
the configuration files that would have been installed had this been a new
installation?   (A few of the admins are looking for them...)
In the hobbitd/etcfiles/ directory after "make" completes.
quoted from Jerry Yu
Any chance that the installer can be modified to save the default
configuration files to $HOBBITROOT/etc/DIST (or some other directory) in the
event of an upgrade installation?
You're free to copy them over. Personally I keep my Hobbit config-files
checked into a revision-control system (just plain rcs) - that lets me
keep check on what changes have been made, and why.


Regards,
Henrik