/etc/init.d/postgresql status error - Mailing list pgsql-hackers

From Gaetano Mendola
Subject /etc/init.d/postgresql status error
Date
Msg-id 48062690.1060301@gmail.com
Whole thread Raw
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Improving planner variable handling
Next
From: Bruce Momjian
Date:
Subject: Re: pg_terminate_backend() issues