diff options
author | explorer <explorer@pkgsrc.org> | 2003-11-14 01:46:39 +0000 |
---|---|---|
committer | explorer <explorer@pkgsrc.org> | 2003-11-14 01:46:39 +0000 |
commit | 1bf96bf4bac90089e638fdd1e0407d07f2993cb8 (patch) | |
tree | c75c443cac9e04fa793e72f1f1c8d0ce8264fafb /databases | |
parent | e1c14f3677f4663c2a9542f01aafdd5fe9a8b1c0 (diff) | |
download | pkgsrc-1bf96bf4bac90089e638fdd1e0407d07f2993cb8.tar.gz |
Add 'ulimit -n 4096' to increase the number of FDs postgresql can use. This is what we do for mysql-server as well. Bump to nb3.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql-server/Makefile | 4 | ||||
-rw-r--r-- | databases/postgresql-server/files/pgsql.sh | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/databases/postgresql-server/Makefile b/databases/postgresql-server/Makefile index 86bc638cbcd..573856da884 100644 --- a/databases/postgresql-server/Makefile +++ b/databases/postgresql-server/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.35 2003/11/12 03:39:39 jschauma Exp $ +# $NetBSD: Makefile,v 1.36 2003/11/14 01:46:39 explorer Exp $ PKGNAME= postgresql-server-${BASE_VERS} SVR4_PKGNAME= pstgs -PKGREVISION= 2 +PKGREVISION= 3 COMMENT= PostgreSQL database server programs DEPENDS+= postgresql-client>=${BASE_VERS}:../../databases/postgresql-client diff --git a/databases/postgresql-server/files/pgsql.sh b/databases/postgresql-server/files/pgsql.sh index a8732e1836e..a8d8c9dcdca 100644 --- a/databases/postgresql-server/files/pgsql.sh +++ b/databases/postgresql-server/files/pgsql.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: pgsql.sh,v 1.20 2003/10/11 07:05:19 grant Exp $ +# $NetBSD: pgsql.sh,v 1.21 2003/11/14 01:46:39 explorer Exp $ # # PostgreSQL database rc.d control script # @@ -52,6 +52,8 @@ start_cmd="pgsql_doit start" restart_cmd="pgsql_doit restart" stop_cmd="pgsql_doit stop" +ulimit -n 4096 + pgsql_precmd() { if [ ! -d ${pgsql_home}/data/base ]; then |