Re: Unrecognized service: 8.1.3 on Fedora Core 3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: François <francois(dot)x(dot)hetu(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Unrecognized service: 8.1.3 on Fedora Core 3
Date: 2006-02-18 06:20:37
Message-ID: 16150.1140243637@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"=?ISO-8859-1?Q?Fran=E7ois?=" <francois(dot)x(dot)hetu(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message François 2006-02-18 06:45:31 Re: Unrecognized service: 8.1.3 on Fedora Core 3
Previous Message Tom Lane 2006-02-18 06:02:31 Re: A question about differences between createdb and "create database"