Date: Wed, 02 May 2007 13:46:15 +0200 From: Lars Kristiansen <lars+lister.freebsd@adventuras.no> To: RW <fbsd06@mlists.homeunix.com> Cc: freebsd-questions@freebsd.org Subject: Re: "BSDstats: Minor Update to Port ..." Message-ID: <46387A07.2030303@adventuras.no> In-Reply-To: <20070502013635.635143b9@gumby.homeunix.com.> References: <C8D2CE303BFB0CC0D415C365@ganymede.hub.org> <46365B43.6080409@adventuras.no> <20070502013635.635143b9@gumby.homeunix.com.>
next in thread | previous in thread | raw e-mail | index | archive | help
RW skrev: > On Mon, 30 Apr 2007 23:10:27 +0200 > Lars Kristiansen <lars@adventuras.no> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46387A07.2030303>