aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2002-11-11 05:47:46 +0800
committerdirk <dirk@FreeBSD.org>2002-11-11 05:47:46 +0800
commit152038e5b5925d1351985dd22c5eaae14ac25825 (patch)
tree5e3109fa5cad6eee45addd61c98130a3e918a5e2
parentfc76a5dc189ee7f64bcae250d835e4a97b7b50cb (diff)
downloadfreebsd-ports-gnome-152038e5b5925d1351985dd22c5eaae14ac25825.tar.gz
freebsd-ports-gnome-152038e5b5925d1351985dd22c5eaae14ac25825.tar.zst
freebsd-ports-gnome-152038e5b5925d1351985dd22c5eaae14ac25825.zip
Set limits from user mysql before starting mysqld.
Submitted by: Denis Shaposhnikov <dsh@neva.vlink.ru>
-rw-r--r--databases/mysql323-server/Makefile2
-rw-r--r--databases/mysql323-server/files/mysql-server.sh1
-rw-r--r--databases/mysql40-server/Makefile2
-rw-r--r--databases/mysql40-server/files/mysql-server.sh1
-rw-r--r--databases/mysql41-server/Makefile2
-rw-r--r--databases/mysql41-server/files/mysql-server.sh1
-rw-r--r--databases/mysql50-server/Makefile2
-rw-r--r--databases/mysql50-server/files/mysql-server.sh1
-rw-r--r--databases/mysql51-server/Makefile2
-rw-r--r--databases/mysql51-server/files/mysql-server.sh1
-rw-r--r--databases/mysql54-server/Makefile2
-rw-r--r--databases/mysql54-server/files/mysql-server.sh1
-rw-r--r--databases/mysql55-server/Makefile2
-rw-r--r--databases/mysql55-server/files/mysql-server.sh1
-rw-r--r--databases/mysql60-server/Makefile2
-rw-r--r--databases/mysql60-server/files/mysql-server.sh1
-rw-r--r--databases/percona55-server/Makefile2
-rw-r--r--databases/percona55-server/files/mysql-server.sh1
18 files changed, 18 insertions, 9 deletions
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql323-server/Makefile
+++ b/databases/mysql323-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql323-server/files/mysql-server.sh b/databases/mysql323-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql323-server/files/mysql-server.sh
+++ b/databases/mysql323-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql40-server/Makefile
+++ b/databases/mysql40-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql40-server/files/mysql-server.sh b/databases/mysql40-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql40-server/files/mysql-server.sh
+++ b/databases/mysql40-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql41-server/files/mysql-server.sh b/databases/mysql41-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql41-server/files/mysql-server.sh
+++ b/databases/mysql41-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql50-server/Makefile
+++ b/databases/mysql50-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql50-server/files/mysql-server.sh b/databases/mysql50-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql50-server/files/mysql-server.sh
+++ b/databases/mysql50-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql51-server/Makefile
+++ b/databases/mysql51-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql51-server/files/mysql-server.sh b/databases/mysql51-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql51-server/files/mysql-server.sh
+++ b/databases/mysql51-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql54-server/files/mysql-server.sh b/databases/mysql54-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql54-server/files/mysql-server.sh
+++ b/databases/mysql54-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql55-server/Makefile
+++ b/databases/mysql55-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql55-server/files/mysql-server.sh b/databases/mysql55-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql55-server/files/mysql-server.sh
+++ b/databases/mysql55-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/mysql60-server/Makefile
+++ b/databases/mysql60-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/mysql60-server/files/mysql-server.sh b/databases/mysql60-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/mysql60-server/files/mysql-server.sh
+++ b/databases/mysql60-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile
index 5011bb848da1..b95e0453421d 100644
--- a/databases/percona55-server/Makefile
+++ b/databases/percona55-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 3.23.53
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \
diff --git a/databases/percona55-server/files/mysql-server.sh b/databases/percona55-server/files/mysql-server.sh
index f22cbd0c8235..6a5acb39a962 100644
--- a/databases/percona55-server/files/mysql-server.sh
+++ b/databases/percona55-server/files/mysql-server.sh
@@ -6,6 +6,7 @@ PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
case "$1" in
start)
if [ -x %%PREFIX%%/bin/safe_mysqld ]; then
+ /usr/bin/limits -U mysql \
%%PREFIX%%/bin/safe_mysqld --user=mysql --datadir=${DB_DIR} --pid-file=${PIDFILE} > /dev/null &
echo -n ' mysqld'
fi