PostgreSQL has no service name on CentOS

Posted by Kyle MacFarlane on Server Fault See other posts from Server Fault or by Kyle MacFarlane
Published on 2011-03-11T23:55:12Z Indexed on 2011/03/12 0:12 UTC
Read the original article Hit count: 537

Filed under:

I installed PostgreSQL in a pretty standard way on CentOS 5.5:

rpm -ivh http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm
yum install postgresql90-server postgresql90-contrib
chkconfig postgresql-90 on
/etc/init.d/postgresql-90 initdb

But for some reason I can't use it with the service command because it has no name, .e.g if I do service --status-all I get back the following:

master (pid 3095) is running...
 (pid 3009) is running...
rdisc is stopped

Or even just /etc/init.d/postgresql-90 status:

 (pid 3009) is running...

So how can I give it a name so that I don't have to type out the whole init script path each time?

© Server Fault or respective owner

Related posts about postgresql