Hi Martin, On Thu, 2005-10-06 at 08:31 +0200, Martin Pitt wrote: > I'd take the kernel approach and run stop with --reverse, so that the > usual habit of adding a priority prefix works. But if we do that, we > should not call the scripts with "restart" since it is not clear in > which order they should be called then. Any good ideas about this? The --reverse is nice. For "restart", I don't think it would really matter that much as I'd think 99% of the entries will be independent anyway. Also, I just looked at /usr/share/postgresql-common/init.d-functions and it does a "stop", "start" anyway internally for a "restart". So that would result in calling "stop" first in all dependents, then stopping postgresql, then starting it, then starting all the dependents again. Sounds perfect to me.
One other thing to think about is the "multiple versions of postgresql running" scenario. I currently have both 7.4 and 8.1 running (works great, thanks a lot for all that work). So we would need 1 run-parts directory per version. Any ideas about where to put that? > > I could also send a patch for that if this would help. > Sure, that's always appreciated. :-) Thought you would bite on that (who wouldn't :-). Ok, I'll try to set up something over the weekend. Best, Norbert
signature.asc
Description: This is a digitally signed message part