Re: "ulimit -n" in postgresql/pgbouncer init scripts.
Вложения
В списке pgsql-pkg-debian по дате отправления:
| От | Christoph Berg |
|---|---|
| Тема | Re: "ulimit -n" in postgresql/pgbouncer init scripts. |
| Дата | |
| Msg-id | 20121228115654.GB26096@msgid.df7cb.de обсуждение исходный текст |
| Ответ на | "ulimit -n" in postgresql/pgbouncer init scripts. (Kirill Kuznetsov <kir@evilmartians.com>) |
| Ответы |
Re: "ulimit -n" in postgresql/pgbouncer init scripts.
|
| Список | pgsql-pkg-debian |
Re: Greg Smith 2012-12-26 <50DB32C7.50608@2ndQuadrant.com> > -Edit either /etc/pam.d/su and/or /etc/pam.d/common-session and make > sure this line is there: > > session required pam_limits.so > > That makes the way PAM is involved in switching users references the > new user's ulimit values. I agree that this should be the prefered way to get this resolved, except that pg_ctlcluster doesn't invoke su(1), but does the uid change in pure perl. We should probably fix postgresql-common to use PAM. That said, there's nothing really wrong with editing /etc/default/pgbouncer or /etc/init.d/postgresql to do the ulimit changes. These files are "conffiles", i.e. changes to them will be preserved on package upgrades. (Of course using PAM would be nicer, but we are not there yet.) Christoph -- cb@df7cb.de | http://www.df7cb.de/
В списке pgsql-pkg-debian по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера