[rtg] rtg status?
Matt Simerson
matt.simerson at gmail.com
Sun Jan 11 02:50:28 EST 2009
On Jan 10, 2009, at 7:10 PM, Tim Price wrote:
> I've got some changes to contribute from the latest FreeBSD port.
>
> One problem I've got which someone might be able to help with is this:
>
> I run the rtg poller with Daemon Tools so when I make any changes /
> additions I restart daemon tools to restart the rtg poller.
Simple solution, don't do that. You shouldn't ever need to restart
daemontools. Use the svc program to send the supervised daemon
whatever signal you need. This is true for pretty much anything you
run supervised.
http://cr.yp.to/daemontools/svc.html
> This of course does a hard restart of the application and it does an
> initial poll of the devices and puts a huge spike in the data
> (especially if it's a gigabit interface).
>
> Is there a way of doing a softer restart so that it doesn't have
> this effect? It seems to me that the initial poll of a device
> should not be considered sane because as it's a counter value it
> will always be greater than zero and could be any value.
>
> Tim Price
You don't want to "restart" rtgpoll every time you make a
configuration change. That's what unix programs have signals for.
IIRC, you want to send rtgpoll a HUP signal, which you'd do with:
svc -h /path/to/service-dir
Matt
More information about the RTG
mailing list