Re: "BSDstats: Minor Update to Port ..."
On Wed, 02 May 2007 13:46:15 +0200 Lars Kristiansen <[EMAIL PROTECTED]> wrote: > RW skrev: > > A much better solution is to install sysutils/anacron instead; fix > > the problem, not the symptom. > > I do not think only the bsdstats script is enough to want to install > anacron. The periodic scripts do other things apart from BSDstats. Installing anacron is very simple and solves the underlying problem, rather than just one symptom of the problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "BSDstats: Minor Update to Port ..."
RW skrev: On Mon, 30 Apr 2007 23:10:27 +0200 Lars Kristiansen <[EMAIL PROTECTED]> 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 "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "BSDstats: Minor Update to Port ..."
On Mon, 30 Apr 2007 23:10:27 +0200 Lars Kristiansen <[EMAIL PROTECTED]> 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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "BSDstats: Minor Update to Port ..."
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 . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 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 "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "BSDstats: Minor Update to Port ..."
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On Monday, April 30, 2007 18:50:42 +0300 Toomas Aas <[EMAIL PROTECTED]> wrote: > Marc G. Fournier wrote: > > >> 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 ... > > So, do I understand it right that there is no harm in running the script > several times a month (i.e. it doesn't increase the stats every time it's > run)? So far I've been running the script manually at the beginning of each > month on my home PC and been a bit nervous that I maybe spoil the stats > accidentally... The only 'risks' are those running it on a LiveCD, since it can't save the key values ... but, on a desktop / server / laptop, it saves a file in /var/db/bsdstats that contains two values unique to your machine that are used in reporting, so that if you submit once a day, it will only show up as one entry ... The big change with my recent commit is that that whole 'first of month' doesn't really apply anymore, but, based on talking to several ppl, we suspect that we've been losing a fair number of reporters that have installed it, but their machines aren't actually turned on at 5am on the 1st of each month :( - Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFGNhlI4QvfyHIvDvMRAjuZAKDZJptMJc9bVApP8QhPUxp1qzfb5ACfWurm sfF244RM1oT5TdWoTwetmAc= =7eIx -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "BSDstats: Minor Update to Port ..."
Marc G. Fournier wrote: 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 ... So, do I understand it right that there is no harm in running the script several times a month (i.e. it doesn't increase the stats every time it's run)? So far I've been running the script manually at the beginning of each month on my home PC and been a bit nervous that I maybe spoil the stats accidentally... -- Toomas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
"BSDstats: Minor Update to Port ..."
-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 ... - Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 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 "[EMAIL PROTECTED]"