From owner-freebsd-questions@FreeBSD.ORG Mon Apr 30 21:11:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 868FE16A401 for ; Mon, 30 Apr 2007 21:11:14 +0000 (UTC) (envelope-from lars@adventuras.no) Received: from mail.adventuras.no (mail.adventuras.no [194.63.250.215]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC6B13C4B9 for ; Mon, 30 Apr 2007 21:11:11 +0000 (UTC) (envelope-from lars@adventuras.no) Received: from ladyda.hovin.local (hjem [84.209.202.7]) (authenticated bits=0) by mail.adventuras.no (8.14.1/8.14.1) with ESMTP id l3ULARfF003399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Apr 2007 23:10:30 +0200 (CEST) (envelope-from lars@adventuras.no) Message-ID: <46365B43.6080409@adventuras.no> Date: Mon, 30 Apr 2007 23:10:27 +0200 From: Lars Kristiansen User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: "Marc G. Fournier" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Adventuras: du kan filtrere etter AdvSpamScore over 5-10 X-Adventuras-SpamCheck: not spam, SpamAssassin (not cached, score=-3.533, required 6, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.87, BAYES_00 -2.60) X-MailScanner-From: lars@adventuras.no X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: "BSDstats: Minor Update to Port ..." X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2007 21:11:14 -0000 Marc G. Fournier skrev: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > It has been brought to my attention that there is / was an inherent flaw in > how/when bsdstats is run ... it makes the assumption that the server is > actually *running* at 5am on the 1st of each month, instead of shutdown as > numerous offices do ... > > I've just made a slight change to the port so that it adds a bsdstats.sh script > to /usr/local/etc/rc.d that can be enabled in /etc/rc.conf so that it runs on > system reboot ... > > The script that prompts you to enable will auto-enable boottime reporting if > you enable monthly reporting as well ... It adds half a minute or so to startup-time. So I changed the line: run_rc_command "$1" to: run_rc_command "$1" & To force it to background. Is this correct action in rc-scripts? -- Regards, Lars > > - ---- > 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) > > iD8DBQFGM5934QvfyHIvDvMRAmHMAKC/scpziDRgGfjge4Xgd6c1yHs1QACg6Ysl > +UPjZuM2FlOGKB2DJ2xaruc= > =3hFG > -----END PGP SIGNATURE----- > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"