[packages/mysql/MYSQL_8_4] Respect sysconfig/ service limits.
arekm
arekm at pld-linux.org
Tue May 26 11:34:12 CEST 2026
commit 045c34cd3d67d338f338ee78a3c0b30f70e0c50b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue May 26 11:33:50 2026 +0200
Respect sysconfig/ service limits.
mysql.init | 2 ++
mysql.spec | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/mysql.spec b/mysql.spec
index 07d7ce5..7f61afb 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -31,7 +31,7 @@ Summary(zh_CN.UTF-8): MySQL数据库服务器
Name: mysql%{majorver}
# keep stable (and not "innovation") line here
Version: 8.4.9
-Release: 1
+Release: 2
License: GPL v2 + MySQL FOSS License Exception
Group: Applications/Databases
#Source0Download: https://dev.mysql.com/downloads/mysql/8.4.html#downloads
diff --git a/mysql.init b/mysql.init
index 16e5d17..1e35a8d 100755
--- a/mysql.init
+++ b/mysql.init
@@ -277,6 +277,8 @@ mysqlstart() {
[ -z "$DEFAULT_SERVICE_RUN_NICE_LEVEL" ] && DEFAULT_SERVICE_RUN_NICE_LEVEL=0
rm -f "$MYSQL_PIDFILE"
+ # SERVICE_LIMITS isn't applied automatically: mysqld is started directly, not via daemon()
+ _daemon_set_ulimits
TMPDIR=/tmp nice -n ${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} \
/usr/bin/setsid /usr/sbin/mysqld{MYSQL_MAJOR} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/045c34cd3d67d338f338ee78a3c0b30f70e0c50b
More information about the pld-cvs-commit
mailing list