pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unrecognized service: 8.1.3 on Fedora Core 3
3+ messages / 2 participants
[nested] [flat]

* Unrecognized service: 8.1.3 on Fedora Core 3
@ 2006-02-18 02:40  François <francois.x.hetu@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: François @ 2006-02-18 02:40 UTC (permalink / raw)
  To: pgsql-admin

Hi,

Just upgraded postgresql to 8.1.3, and successfuly configured, started and
stopped the RDBMS.  One thing I just couldn't do: postgresql as a service on
FC3.

I copied and renamed this script: postgresql-8.1.3/contrib/start-scripts/linux
to : /etc/rc.d/init.d/postgresql and  followed the instructions within the
script:

#   make symlinks to
#   /etc/rc.d/rc0.d/K02postgresql
#   /etc/rc.d/rc1.d/K02postgresql
#   /etc/rc.d/rc2.d/K02postgresql
#   /etc/rc.d/rc3.d/S98postgresql
#   /etc/rc.d/rc4.d/S98postgresql
#   /etc/rc.d/rc5.d/S98postgresql

if I try at the command line to start the service:

> service postgresql start

I get:

> unrecognized service

I'm certain it's a simple thing to get the RDBMS fire up at boot, but then,
after searching and searching for a solution, I just gave up.

Thanks for your help,

Francois

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Unrecognized service: 8.1.3 on Fedora Core 3
@ 2006-02-18 06:20  Tom Lane <tgl@sss.pgh.pa.us>
  parent: François <francois.x.hetu@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2006-02-18 06:20 UTC (permalink / raw)
  To: François <francois.x.hetu@gmail.com>; +Cc: pgsql-admin

"=?ISO-8859-1?Q?Fran=E7ois?=" <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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Unrecognized service: 8.1.3 on Fedora Core 3
@ 2006-02-18 06:45  François <francois.x.hetu@gmail.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: François @ 2006-02-18 06:45 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: 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>:
>
> "=?ISO-8859-1?Q?Fran=E7ois?=" <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
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-02-18 06:45 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-18 02:40 Unrecognized service: 8.1.3 on Fedora Core 3 François <francois.x.hetu@gmail.com>
2006-02-18 06:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-18 06:45   ` François <francois.x.hetu@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox