Re: boot on Debian with /etc/init.d/rc ... - Mailing list pgsql-novice

From salman
Subject Re: boot on Debian with /etc/init.d/rc ...
Date
Msg-id 4983306A.9020107@quietcaresystems.com
Whole thread Raw
In response to boot on Debian with /etc/init.d/rc ...  (Raimon Fernandez <coder@montx.com>)
Responses Re: boot on Debian with /etc/init.d/rc ...  (Raimon Fernandez <coder@montx.com>)
List pgsql-novice
Raimon Fernandez wrote:
> Hello,
>
> After some months of Postgre on OS X, amb trying to install a complete
> package of Ruby On Rails with PostgreSQL, Capistrano, git, etc. etc.
> on a Debian linux.
>
> I've installed PostgreSQL from source, and executed the commands to
> install the start-up script:
>
> $ cp contrib/start-scripts/linux /etc/init.d/postgresql
> $ update-rc.d postgresql defaults
>
> on boot time, I'm getting a Permission denied:
>
> /etc/init.d/rc: line 78: /etc/rc2.d/S20postgresql : Permission denied
>
>
> even If I execute this line as a root I'm getting the permission denied:
>
> /etc/init.d/postgresql start
>
>
> I can start the database logged as the postgre user and executing:
>
> /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
>
> my postgres user is postgres user, all with the default values.
>
> here is the file, in case someone can view any error ...
>
> thanks in advance,
>
> r.

You probably need to grant it executable permissions. chmod +x
/etc/init.d/postgresql should do the trick.

-salman

pgsql-novice by date:

Previous
From: "Keith Turner"
Date:
Subject: Re: REALLY stupid question
Next
From: Raimon Fernandez
Date:
Subject: Re: boot on Debian with /etc/init.d/rc ...