Re: postgres startup method for ubuntu

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: postgres startup method for ubuntu
Дата
Msg-id e0e89e9e-0b9f-458f-a045-b370b34ff37d@mm
обсуждение исходный текст
Ответ на Re: postgres startup method for ubuntu  ("T.J. Adami" <adamitj@gmail.com>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Enrico Sirola
Дата:
Сообщение: Re: Oracle Analytical Functions
Следующее
От: jr
Дата:
Сообщение: Re: Log file permissions?