[Slackbuilds-users] postgresql

Donald Allen donaldcallen at gmail.com
Fri Apr 2 16:25:35 UTC 2010


Here's another one, given that I performed so brilliantly on the first
submission.

The postgresql page says:

"Before you can run postgresql you'll need to create the database;
please see README.SBo."

README.SBo instructs you to add

# Startup postgresql
if [ -x /etc/rc.d/rc.postgresql ]; then
	/etc/rc.d/rc.postgresql start
fi

to /etc/rc.d/rc.local. But this doesn't work (the postgres server
doesn't start) because /etc/rc.d/rc.postgresql doesn't have execute
permission after installing the postgresql package that results from
running postgresql.SlackBuild.

Simply doing the obvious

chmod +x /etc/rc.d/rc.postgresql

in a root shell fixes the problem, but, of course, that shouldn't be
necessary. I think the SlackBuild script, or, more likely, its
associated doinst.sh, or the permissions on  the
postgresql/rc.postgresql.new (644) that results from from un-tarring
the downloaded postgresql.tar.gz needs a little tweaking.

/Don


More information about the SlackBuilds-users mailing list