[packages/mysql/MYSQL_8_0] Rel 4. Start mysqld at an absolute nice level
arekm
arekm at pld-linux.org
Fri Oct 30 21:53:55 CET 2026
commit 07470a2b8262cea03229480831e865bdb7877063
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Oct 30 14:52:16 2026 +0100
Rel 4. Start mysqld at an absolute nice level
Drop the router logrotate file, installed but never packaged.
mysql.init | 3 ++-
mysql.spec | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/mysql.spec b/mysql.spec
index 6efa605..d912c2e 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -38,13 +38,13 @@ Summary(zh_CN.UTF-8): MySQL数据库服务器
Name: mysql%{majorver}
# keep stable (and not "innovation") line here
Version: 8.0.46
-Release: 3
+Release: 4
License: GPL v2 + MySQL FOSS License Exception
Group: Applications/Databases
#Source0Download: https://dev.mysql.com/downloads/mysql/8.0.html#downloads
-Source0: http://cdn.mysql.com/Downloads/MySQL-%{majorver}/mysql-%{version}.tar.gz
+Source0: https://cdn.mysql.com/Downloads/MySQL-%{majorver}/mysql-%{version}.tar.gz
# Source0-md5: 6707beb0d46a9e08a19aa596329ca79d
-Source100: http://www.sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz
+Source100: https://www.sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz
# Source100-md5: 5cac34f3d78a9d612ca4301abfcbd666
%if %{without system_boost}
Source101: https://downloads.sourceforge.net/boost/boost_1_77_0.tar.bz2
@@ -606,7 +606,7 @@ sed -e 's#{MYSQL_MAJOR}#%{majorver}#g' %{SOURCE4} > mysqld.conf
sed -e 's#{MYSQL_MAJOR}#%{majorver}#g' %{SOURCE5} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
-%{__mv} $RPM_BUILD_ROOT/etc/logrotate.d/{mysqlrouter,%{name}router}
+%{__rm} $RPM_BUILD_ROOT/etc/logrotate.d/mysqlrouter
# remove innodb directives from mysqld.conf if mysqld is configured without
%if %{without innodb}
diff --git a/mysql.init b/mysql.init
index 1e35a8d..cb23a29 100755
--- a/mysql.init
+++ b/mysql.init
@@ -280,7 +280,8 @@ mysqlstart() {
# 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} \
+ # absolute nice level, as daemon() sets it; nice -n alone adds to the caller's level
+ TMPDIR=/tmp nice -n $((${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} - $(nice))) \
/usr/bin/setsid /usr/sbin/mysqld{MYSQL_MAJOR} \
--defaults-file=$MYSQL_CONFIG \
--datadir=$MYSQL_DATA_DIR \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/07470a2b8262cea03229480831e865bdb7877063
More information about the pld-cvs-commit
mailing list