Stackdriver / collectd

Stackdriver's monitoring agent based on collectd (http://collectd.org).
https://cloud.google.com/monitoring/agent/
Other
51 stars 15 forks source link

Converted read_agent_logging to a one-shot script #127

Closed jkohen closed 6 years ago

jkohen commented 6 years ago

It used to run until aborted, but in some cases something was preventing it from terminating when collectd was restarted, leaving multiple copies in the system.

jkohen commented 6 years ago

We could have added a SIGTERM handler, and maybe that would have fixed the problem, but I only know how to do that for a specific shell, e.g. bash, and I don't know if bash is always available. Maybe one day we should review the way collectd spawns these plug-ins, since the examples I found online didn't handle signals explicitly either.