Date: Mon, 30 Apr 2007 23:10:27 +0200 From: Lars Kristiansen <lars@adventuras.no> To: "Marc G. Fournier" <scrappy@freebsd.org> Cc: freebsd-questions@freebsd.org Subject: Re: "BSDstats: Minor Update to Port ..." Message-ID: <46365B43.6080409@adventuras.no> In-Reply-To: <C8D2CE303BFB0CC0D415C365@ganymede.hub.org> References: <C8D2CE303BFB0CC0D415C365@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46365B43.6080409>