postgres9.2の起動

インストールに引き続き

起動してみる

/etc/init.d/postgresql-9.2 start
/var/lib/pgsql/9.2/data is missing. Use "service postgresql-9.2.0 initdb" to initialize the cluster first.

と言われたので、

service postgresql-9.2.0 initdb
postgresql-9.2.0: unrecognized service

あれ?サービスを調べてみる。

chkconfig --list | grep post
postgresql-9.2 0:off 1:off 2:on 3:on 4:on 5:on 6:off

9.2.0の.0が不要のようです。

service postgresql-9.2 initdb
Initializing database: [ OK ]
/etc/init.d/postgresql-9.2 start

で起動