Re: Postgres at startup - Mailing list pgsql-admin

From Kis János Tamás
Subject Re: Postgres at startup
Date
Msg-id 200611160805.42927.kjt@takarnet.hu
Whole thread Raw
In response to Postgres at startup  ("Michael McCloskey" <maxmcclo@ihug.com.au>)
Responses Re: Postgres at startup  ("Andy Shellam (Mailing Lists)" <andy.shellam-lists@mailnetwork.co.uk>)
Re: Postgres at startup  (Kis János Tamás <kjt@takarnet.hu>)
List pgsql-admin
2006. November 8. 02.34 dátummal Michael McCloskey ezt írta:
> Postgres is starting automatically for me at startup.
> When I boot up my machine and then check the running processes I
> see postmaster.exe and 4 postgres processes.
> How can I stop this?
PGBIN="/usr/local/pgsql/bin";
PGDATA="/srv/postgresql";
su postgres -c "$PGBIN/pg_ctl -D $PGDATA stop"

> I don't want Postgres starting up automatically.

If you have Linux/Unix, you must to find a soft link in your 
"/etc/rc[1-6].d" dir and must to remove them:

kjt:/# cat /etc/inittab | grep default
id:3:initdefault:
   ^^^
kjt:/# ls /etc/rc3.d/ | grep postgres
S20postgresql-my

kjt:/# rm -i /etc/rc3.d/S20postgresql-my

bye,
kjt


McAfee SCM 4.1 által ellenőrizve!

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: all postgres users do "not exist"
Next
From: "Andy Shellam (Mailing Lists)"
Date:
Subject: Re: Postgres at startup