PostgreSQL has no service name on CentOS
- by Kyle MacFarlane
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?