"ulimit -n" in postgresql/pgbouncer init scripts.

Поиск
Список
Период
Сортировка
От Kirill Kuznetsov
Тема "ulimit -n" in postgresql/pgbouncer init scripts.
Дата
Msg-id CAKK=MJaZ+4+ApL4+3c0h4S4shB4uciwMJ5GVbSr01i68O4n5XA@mail.gmail.com
обсуждение исходный текст
Ответы Re: "ulimit -n" in postgresql/pgbouncer init scripts.
Re: "ulimit -n" in postgresql/pgbouncer init scripts.
Список pgsql-pkg-debian
Hello!
I'm the devops engineer at Evil Martians (evilmartians.com). We use
postgresql+pgbouncer (9.1.6; 1.5.3) for most of the projects we are
involved in. Till now we maintained our own repository with postgresql
and pgbouncer packages. We want to switch to using your repository.
But we actually need to set open files limit (ulimit -n) for these
processes. In our packages we modified init.d script so that it
invokes "ulimit -n" command.

e.g: for pgbouncer our modification looks like:
…
ULIMIT=1024

# Include pgbouncer defaults if available
if [ -f /etc/default/pgbouncer ] ; then
        . /etc/default/pgbouncer
fi
…

case "$1" in
  start)
    …
    ulimit -n $ULIMIT
    $SSD --start --chuid $RUNASUSER --oknodo -- $OPTS 2> /dev/null
    ;;
…

Is it possible for something like this to appear in PGDG packages or
are we doing it wrong?


Thank you.

Kirill


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

Предыдущее
От: Michael Wuttke
Дата:
Сообщение: howto upgrade from 8.4 to 9.2 without the remove & install of postgresql
Следующее
От: Greg Smith
Дата:
Сообщение: Re: "ulimit -n" in postgresql/pgbouncer init scripts.