Shutting down pgsql

Started by Adam Langover 25 years ago2 messagesgeneral
Jump to latest
#1Adam Lang
aalang@rutgersinsurance.com

Is it safe to shutdown the server by typing /etc/rc.d/init.d/postgresql stop
? I read the documentation and it is refering to kill the postmaster.pid.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company

#2Ryan Williams
shrewsbury@louisiana.com
In reply to: Adam Lang (#1)
Re: Shutting down pgsql

I should hope so. That's what happens when your system shuts down...

Here's what my postgresql script does when passed 'stop':

killproc postmaster
sleep 2
rm -f /var/run/postmaster.pid
rm -f /var/lock/subsys/postgresql

Kills the postmaster, and cleans up the mess.

----- Original Message -----
From: "Adam Lang" <aalang@rutgersinsurance.com>
To: "PGSQL General" <pgsql-general@postgresql.org>
Sent: Tuesday, August 29, 2000 1:33 PM
Subject: [GENERAL] Shutting down pgsql

Is it safe to shutdown the server by typing /etc/rc.d/init.d/postgresql

stop

Show quoted text

? I read the documentation and it is refering to kill the postmaster.pid.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company