Solaris PostgreSQL startup script

What does a reasonable startup script for PostgreSQL look like?

PostgreSQL is a freely available, Open Source relational database management system that will compile and run on just about any Posix-like operating system. Of course, it is difficult to fully accomodate every operating system's particular startup and shutdown procedures.

The PostgreSQL project has a couple of startup scripts for Solaris. In my opinion, they are dreadfully overwrought -- attempting to initialize the database system locations if they aren't found and other such actions. I just wanted something that would start and stop the database in harmony with the intent of the Solaris startup files. The README files in the /etc/init.d directory is valuable in understanding the intent behind the various directories that Solaris uses when starting and stoping services.

At any rate, the script file is available here, and should be installed into the /etc/init.d directory on your Solaris machine. Follow the directions at the top of the file as to which hardlinks should be made to the script after it has been installed.

Back to the page of Not So Frequently Asked Questions.

Valid HTML 4.01! Kurt J. Lidl
lidl at pix dot net
Last Updated: $Date: 2004/02/16 20:41:50 $