Okay,
solved that question, but have another one for you.
(It was a permission thing. Did a chmod 700 /etc/rc.d/init.d/postgres and chmod o+rx and chmod u+rx... It works now.)
What should I do, when I want to reboot my box? Shut down postgres first and then aolserver??? Or can I just do an init 6??? Well shutting down aolserver with the script running is still a part of my original question.
Thanks