From owner-freebsd-arch Thu Feb 13 6:47:53 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 375F637B401 for ; Thu, 13 Feb 2003 06:47:52 -0800 (PST) Received: from murdoch.servitor.co.uk (murdoch.servitor.co.uk [217.151.99.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D05E43FA3 for ; Thu, 13 Feb 2003 06:47:50 -0800 (PST) (envelope-from paul@iconoplex.co.uk) Received: from mmu-firewall.mmu.ac.uk ([149.170.101.200] helo=miter96pq2w1fz) by murdoch.servitor.co.uk with smtp (Exim 3.33 #3) id 18jI71-000Fnz-00 for arch@FreeBSD.ORG; Thu, 13 Feb 2003 12:05:07 +0000 From: "Paul Robinson" To: Subject: RE: syslog.conf syntax change (multiple program/host specifications) Date: Thu, 13 Feb 2003 12:05:06 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20030213122218.3d72c6ba.Alexander@Leidinger.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alexander wrote: > How do you want to solve the problem of: > - T1: a human edited /etc/rc.conf without updating the .xml > - T2: someone else (or the same human) uses the GUI to change something > --> the hand edited change in rc.conf is lost Oh, that's easy. What you do to keep two views of the same information consistent, is keep all the data in an SQL database, and then just software that pulls the information out into the two different formats, and pushes the data back in on changes! So, what we do is put all the config information into mySQL and insist it ships as standard on every box! :-) On a more serious note, the only way this system would work completely is if there were some trigger mechanism after editing the file. I suppose something like the new aliases stuff under sendmail would have to be implemented. At that point, I think a lot of users would ask "what's the point?" XML is great for lots of things. It means my web server can interact with a customer database on an AS/400 with about half a day's work. It means that documents that should be in a standard non-proprietary format, like music scores for example, are indeed put into standard non-proprietary formats. For these things, and others, XML quite frankly, rocks. Unfortunately, it sucks for configuration files on Unix machines. It would be great for configs on Windows machines or Mac OS, because nobody ever manually plays with the files. I hate to play the pedant on this one, but as a last point, this might serve as a good reminder as to why XML is a bad idea in the framework of FreeBSD: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/introdu ction-archguide.html The first, sixth and seventh points seem to apply here. I'm not going to start a whole new flamewar as to whether these guidelines should be upheld or not, but they do make sense and particularly relevant in my mind to this discussion. Just my ?0.02 worth. I'll go away and shut up now. -- Paul Robinson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message