Re: Unrecognized service: 8.1.3 on Fedora Core 3 - Mailing list pgsql-admin

From François
Subject Re: Unrecognized service: 8.1.3 on Fedora Core 3
Date
Msg-id 4348e4e40602172245t7c80107o@mail.gmail.com
Whole thread Raw
In response to Re: Unrecognized service: 8.1.3 on Fedora Core 3  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Thank you Tom,

To the point, fast, and accurate...  Much appreciated.

Regards,

Francois

2006/2/18, Tom Lane <tgl@sss.pgh.pa.us >:
"François" < francois.x.hetu@gmail.com> writes:
> if I try at the command line to start the service:
>> service postgresql start
> I get:
>> unrecognized service

Looking at the Fedora "service" script, it seems to want the target file
to not only exist but be executable:

if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
   env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
else
   echo $"${SERVICE}: unrecognized service" >&2
   exit 1
fi

So I'm thinking you forgot to set execute permission on the
postgresql init file.

Having said that ... why don't you use the RPM distribution?
It contains a vastly more modern init script than this thing
from contrib.

                        regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unrecognized service: 8.1.3 on Fedora Core 3
Next
From: fathur rohman
Date:
Subject: PGOLEDB Problems