diff options
author | dirk <dirk@FreeBSD.org> | 2002-11-10 21:47:46 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2002-11-10 21:47:46 +0000 |
commit | 152038e5b5925d1351985dd22c5eaae14ac25825 (patch) | |
tree | 5e3109fa5cad6eee45addd61c98130a3e918a5e2 /databases/mysql50-server/files/mysql-server.sh | |
parent | fc76a5dc189ee7f64bcae250d835e4a97b7b50cb (diff) | |
download | FreeBSD-ports-152038e5b5925d1351985dd22c5eaae14ac25825.zip FreeBSD-ports-152038e5b5925d1351985dd22c5eaae14ac25825.tar.gz |
Set limits from user mysql before starting mysqld.
Submitted by: Denis Shaposhnikov <dsh@neva.vlink.ru>
Diffstat (limited to 'databases/mysql50-server/files/mysql-server.sh')
-rw-r--r-- | databases/mysql50-server/files/mysql-server.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/databases/mysql50-server/files/mysql-server.sh b/databases/mysql50-server/files/mysql-server.sh index f22cbd0..6a5acb3 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 |