"BSDstats: Minor Update to Port ..."
lars at adventuras.no
Mon Apr 30 21:11:14 UTC 2007
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 force it to background.
Is this correct action in rc-scripts?
> - ----
> Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
> Email . scrappy at hub.org MSN . scrappy at hub.org
> Yahoo . yscrappy Skype: hub.org ICQ . 7615664
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (FreeBSD)
> -----END PGP SIGNATURE-----
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions