Philip Hallstrom <postgresql@philip.pjkh.com> writes:
> Although I like having a separate startup script that runs first to go
> around removing this and other things as well...
I think most Unix variants have a specific bootup script that's charged
with doing exactly that; if you can find it, that's a good place to add
a line for postmaster.pid.
regards, tom lane