[Pkg-postgresql-private] separate init script for p-contrib
Oliver Elphick
olly@lfix.co.uk
Sat, 27 Mar 2004 18:59:06 +0000
On Sat, 2004-03-27 at 09:52, Martin Pitt wrote:
> Hi!
>
> Would anyone object if I operate out the autovacuum startup from
> postgresql's init script and give it its own one? Then we don't need
> to restart postgresql on p-contrib installation. Or is there any
> reason we have to restart the postmaster when starting the autovacuum
> daemon?
I think I put it in the postgresql start up because (of course)
autovacuum needs the postmaster running, so it must start after it and
stop before it. If you stop the postmaster outside the boot sequence
(/etc/init.d/postgresq stop), it should stop the autovacuum first.
If you separate them, I don't see how you will be certain of that.
In order to start autovacuum with a postgresql-contrib installation
after postgresql is started, you could add an autovacuum-start target to
postgresql's init script, which the pg_contrib postinst would call.
Oliver