/etc/init.d/postgresql status error

From: Gaetano Mendola <mendola(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: /etc/init.d/postgresql status error
Date: 2008-04-16 16:17:20
Message-ID: 48062690.1060301@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2008-04-16 16:32:58 Re: pg_terminate_backend() issues
Previous Message Kris Jurka 2008-04-16 16:16:15 [Pljava-dev] stack depth limit exceeded - patch possible?