From owner-freebsd-advocacy@FreeBSD.ORG Mon Dec 4 00:28:12 2006 Return-Path: X-Original-To: freebsd-advocacy@freebsd.org Delivered-To: freebsd-advocacy@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B449016A403; Mon, 4 Dec 2006 00:28:12 +0000 (UTC) (envelope-from scrappy@freebsd.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id C95B143CA3; Mon, 4 Dec 2006 00:27:42 +0000 (GMT) (envelope-from scrappy@freebsd.org) Received: from localhost (unknown [200.46.204.182]) by hub.org (Postfix) with ESMTP id 76FF8118C579; Sun, 3 Dec 2006 20:27:56 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 24632-04; Sun, 3 Dec 2006 20:27:56 -0400 (AST) Received: from ganymede.hub.org (blk-137-79-174.eastlink.ca [24.137.79.174]) by hub.org (Postfix) with ESMTP id 0E205118C56A; Sun, 3 Dec 2006 20:27:56 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id A491445AD9; Sun, 3 Dec 2006 20:28:15 -0400 (AST) Date: Sun, 03 Dec 2006 20:28:15 -0400 From: "Marc G. Fournier" To: Boris Samorodov , "Marc G. Fournier" Message-ID: In-Reply-To: <81086419@bsam.ru> References: <70378354@bsam.ru> <81086419@bsam.ru> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-advocacy@freebsd.org, freebsd-questions@freebsd.org Subject: Re: BSDStats Report for December 1st, 2006 X-BeenThere: freebsd-advocacy@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Evangelism List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 00:28:12 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Monday, December 04, 2006 02:07:08 +0300 Boris Samorodov wrote: > On Sun, 03 Dec 2006 17:05:04 -0400 Marc G. Fournier wrote: > >> If its diskless, will each reboot end up reporting as a whole new host each >> time, or is there some way of saving that /var/db/bsdstats across reboots? > > We use memory mounted /var. :-( > Ok, let's only our servers do the reporting. 'k, I'm clueless on diskless, so this may or may not be doable ... but would it be possible to cp the bsdstats file from the 'disk mount server' to /var/db/bsdstats on reboot? Say, something scripted like: if [ ! -f /var/db/bsdstats ]; then if [ -f /bsdstats.`hostname` ]; then cp /bsdstats.`hostname` /var/db/bsdstats else run 300.statistics cp /var/db/bsdstats /bsdstats.`hostname` fi fi Add something like that (real code at least) to the init/rc file used on the diskless station, to be run after all mounts are up? - ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFc2uf4QvfyHIvDvMRAiexAJ4y/VmnZ89rxhIU2eOSXL4YQUvLeACgqdA2 07v4cbtbLmfSgAuO8ras+zo= =jk41 -----END PGP SIGNATURE-----