[collectd] Bug#422208: /etc/init.d/collectd doesn't stop all the daemons

Sebastian Harl sh at tokkee.org
Sun Aug 12 20:14:16 CEST 2007

Hi Bas,

On Wed, Aug 08, 2007 at 11:15:21PM +0200, Bas Zoetekouw wrote:
> You wrote:
> > Starting with version 4 the code which writes to the RRD files caches updates
> > to the files. In large setups the cache size might get quite big and a large
> > amount of data might have to be flushed when shutting down the daemon.
> In that case, it's even more important for the init script not to exit
> before thc process is properly terminated.  If the script exists right
> away during a shutdown for example, the processes will get killed
> automatically, possibly without having written all data to disk.

Okay, I will wait for the process to stop for 30 seconds (by default - I think
this should be made easily configurable using /etc/default/collectd so it can
be adapted for really large setups) similar to squid as you proposed in an
earlier E-mail, print an error message if the process is still running after
that amount of time and return a non-zero exit status.

Any comments?


Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20070812/927198f2/attachment.pgp 

More information about the collectd mailing list