Oliver,
I tried your script.
I get the weirdest thing happening.
I added it as a file called postgres to the directory /sbin/init.d.
I created the two symbolic links in the subdirectory
as ln -s ../postgres S86postgres and K05postgres.
When I to run the script by typing
/sbin/init.d/postgres start, the script bombs out saying
No such file or directory.
I know the script will work because if I type
su - postgres -c "...etc .....etc " it brings up the postmaster
for me, and killproc similarly typed at the command line
shuts down the postmaster.
Have you got any ideas ?
Weird city or what ?
Regards
John