From owner-freebsd-questions@FreeBSD.ORG Wed May 2 11:59:02 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 DE29616A408 for ; Wed, 2 May 2007 11:59:02 +0000 (UTC) (envelope-from lars+lister.freebsd@adventuras.no) Received: from mail.adventuras.no (mail.adventuras.no [194.63.250.215]) by mx1.freebsd.org (Postfix) with ESMTP id 747AE13C46C for ; Wed, 2 May 2007 11:59:02 +0000 (UTC) (envelope-from lars+lister.freebsd@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 l42BkF2I057665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 May 2007 13:46:19 +0200 (CEST) (envelope-from lars+lister.freebsd@adventuras.no) Message-ID: <46387A07.2030303@adventuras.no> Date: Wed, 02 May 2007 13:46:15 +0200 From: Lars Kristiansen User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: RW References: <46365B43.6080409@adventuras.no> <20070502013635.635143b9@gumby.homeunix.com.> In-Reply-To: <20070502013635.635143b9@gumby.homeunix.com.> 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=-4.399, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-MailScanner-From: lars+lister.freebsd@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: Wed, 02 May 2007 11:59:02 -0000 RW skrev: > On Mon, 30 Apr 2007 23:10:27 +0200 > Lars Kristiansen wrote: > >> Marc G. Fournier skrev: > >>> 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? > > A much better solution is to install sysutils/anacron instead; fix the > problem, not the symptom. Thank you for answering. Are you saying that the rc-system should not be used for setting a program to background to be able to continue booting? In that case maybe a simple entry like this in /etc/crontab will do: @reboot /usr/local/etc/periodic/monthly/300.statistics -nodelay I do not think only the bsdstats script is enough to want to install anacron. -- Regards, Lars > > > _______________________________________________ > 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"