Re: BSDStats - What is involved ... ?



On Mon, 28 Aug 2006, Antony Mawer wrote:

On 28/08/2006 11:59 AM, Marc G. Fournier wrote:
On Sun, 27 Aug 2006, Ricardo Nabinger Sanchez wrote:
That would be even easier if the dropping of 2 lines was carried out
automatically. I know people lazy enough to deinstall a port if they must
do any post-config for themselves ("make deinstall" is easier than thinking
for a few seconds).

There are several things I want to work on when I get back onto a 'real network' next week ... Matt @ Dragonfly has asked for some 'network detection' code to be added, to check if there is even a network connected, before he'll add it to there base system ... and someone else suggested adding code similar to postfix's port to have *it* prompt and auto-add the appropriate lines to /etc/periodic.conf ...

That may have been me :-) Here's a patch that implements something along those lines... anyone care to review/comment on the attached patch? I've only tested it very briefly but it appears to do the desired job...

One thing that would be nice to do is to update any existing lines for the stats, rather than always adding new lines if the user answers 'y'... detecting existing lines could easily be done by sourcing the periodic.conf:

. /etc/periodic.conf

at the top of the file, but I'm not sure the preferred way on how you'd update any existng lines if changes were required... perhaps some grep/sed-foo magic? :-)

Patch applied, and I added a yesno for actually running the script right then also ...

_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: BSDStats - What is involved ... ?
    ... I know people lazy enough to deinstall a port if they must ... There are several things I want to work on when I get back onto a 'real network' next week ... ... and someone else suggested adding code similar to postfix's port to have *it* prompt and auto-add the appropriate lines to /etc/periodic.conf ... ... local question default answer ...
    (freebsd-arch)
  • Re: BSDStats - What is involved ... ?
    ... to update their ports tree, install the port, and then add the two lines. ... I know people lazy enough to deinstall a port if they must ... There are several things I want to work on when I get back onto a 'real network' next week ... ... Matt @ Dragonfly has asked for some 'network detection' code to be added, to check if there is even a network connected, before he'll add it to there base system ... ...
    (freebsd-arch)
  • RE: Printing from Win9x clients stops
    ... > and make sure this software does not interfere with SBS Server. ... > clients, please disable it and try again. ... Create a local printer and redirect the port to the network server. ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003, ISA 2004
    ... ISA and IIS try listening on these two ports. ... by default the Web Proxy is listening on port 8080 ... of the local network adapter. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: ERS 8600, simple setup, IP, VLANs, etc.
    ... management port is just used to hang an IP address to. ... associated with an interface, such as a VLAN. ... fairly functionally homogenous network), but something that is ... or OS virtuallization - except that networks have been doing this kind of ...
    (comp.dcom.sys.nortel)