/etc/init.d/postgresql status error

Started by Gaetano Mendolaover 17 years ago1 messages
#1Gaetano Mendola
mendola@gmail.com

I have just installed the rpm found at:

http://www.postgresql.org/ftp/binary/v8.2.7/linux/rpms/redhat/rhel-4-i386/

and the status option generates an error:

$ /etc/init.d/postgresql status
pidof: invalid options on command line!

pidof: invalid options on command line!

-p is stopped

I was able to fix it in the following mode:

status)
# status -p /var/run/postmaster.${PGPORT}.pid
status postmaster
script_result=$?
;;

Commented the original line and replaced with the one just below.

Regards
Gaetano Mendola