Re: Database shutdown - Mailing list pgsql-general

From Björn Lundin
Subject Re: Database shutdown
Date
Msg-id 99hq82$npv$1@news.tht.net
Whole thread Raw
In response to Database shutdown  ("Christian Marschalek" <cm@chello.at>)
List pgsql-general
Christian Marschalek wrote:

> Hi all of you! :o)
>
> I guess I do have to shut down the database before shutting down the
> linux box?
> How would I accomplish this?
> Just by killing the postmaster per pid?
>
> Tia and regards!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


Add a symbolic link to /etc/inid.d/postgresql in /etc/inid.d/rcd.6 and
/etc/inid.d/rcd.0 (reboot and shutdown)

ln -s /etc/init.d/postgresql /etc/inid.d/rcd.0/K15postgresql

The K make the call with 'stop'.
At boottime there's proberly a call to  /etc/inid.d/rcd.0/S85postgresql

where the S makes the call with 'start'

To shutdown manually just su to root and run
'/etc/init.d/postgresql stop'

The links kan be accomplished by running (as root) tksysv (a gui to start
and stop services)


Björn

pgsql-general by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Problem migrating dump to latest CVS snapshot.
Next
From: Karl DeBisschop
Date:
Subject: Re: OID as Primary Key