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? Cheers, Sebastian -- 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
signature.asc
Description: Digital signature