Hi Norbert!

Norbert Kiesel [2005-10-08 23:09 -0700]:
> +    if [ -d "/etc/postgresql/$2/clients.d" -a "$1" = "stop" ]; then

I gave this another thought, and I'm still not sure how to do this
properly.

I just noticed that you only have a per-version directory, not a
per-cluster one. Since you can control single clusters with
pg_ctlcluster, the scripts should respect this as well, right?

On the other hand, having per-cluster directories makes it hard to
automatically install scripts into them by package maintainer scripts,
since you can have arbitrarily many clusters with several versions.

Do you have any idea how to solve this? For now we could just offer
this feature and the admin can manually remove the /etc/rcX.d symlink
and add it to the clients.d directory. But I don't see how to
automatically decide which cluster a particular service uses.

Thanks,

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

Attachment: signature.asc
Description: Digital signature

Reply via email to