Skip site navigation (1) Skip section navigation (2)

Re: postgres startup method for ubuntu

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "T(dot)J(dot) Adami" <adamitj(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgres startup method for ubuntu
Date: 2008-01-31 17:17:55
Message-ID: e0e89e9e-0b9f-458f-a045-b370b34ff37d@mm (view raw or flat)
Thread:
Lists: pgsql-general
	T.J. Adami wrote:

> > The source comes with a startup script that can be installed by
> > running:
> > # cp contrib/start-scripts/linux /etc/init.d/postgresql
> > # update-rc.d postgresql defaults
> > (update-rc.d is to debian-based systems what chkconfig is to
> > Redhat-based systems).
> >
> > --
> >  Daniel
> 
> This adds shutdown scripts too? I need the server shutdown by 'pg_ctl
> stop', not by linux killing the process (init 0 or shutdown commands
> are very useful sometimes ;)


Yes. update-rc.d set things up so that at boot time the system will 
execute: /etc/init.d/postgresql start, and at shutdown time: 
/etc/init.d/postgresql stop

Additionally, the root user can also execute when needed:
/etc/init.d/postgresql {stop|start|reload|restart}

That's the standard way of starting and stopping services on linux, 
both automatically and manually.

-- 
 Daniel
 PostgreSQL-powered mail user agent and storage: 
http://www.manitou-mail.org

In response to

pgsql-general by date

Next:From: jrDate: 2008-01-31 17:40:36
Subject: Re: Log file permissions?
Previous:From: Enrico SirolaDate: 2008-01-31 16:46:59
Subject: Re: Oracle Analytical Functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group