Updates to Init Script and More Perl Fixes for PostgreSQL

Thanks to¬†Diego E. Petten√≤ (flameeyes) we’ve got some updated initscripts that are a good deal cleaner.

I did experience one inexplicable hiccup where it wouldn’t stop the server. If you run into that, just do:

kill -SIGINT $(head -n1 ${DATA_DIR}/postmaster.pid)

Where ${DATA_DIR} is the data directory for PostgreSQL server. (Usually, /var/lib/postgresql/$SLOT/data/.)

There have been a couple of fixes regarding Perl, most notably bug 378865 (bugs.gentoo.org).

Find all the changes at the official post. (postgresql.org)

Have fun!