import stalld-1.17-3.el8_6
This commit is contained in:
parent
a31c813aba
commit
5fd1f1309c
27
SOURCES/Start-stalld-service-as-initrc_t.patch
Normal file
27
SOURCES/Start-stalld-service-as-initrc_t.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 476152742021303d2defeb69f524bcc302618081 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Leah Leshchinsky <lleshchi@redhat.com>
|
||||||
|
Date: Mon, 29 Aug 2022 14:07:39 -0400
|
||||||
|
Subject: [PATCH] Start stalld service as initrc_t
|
||||||
|
|
||||||
|
Stalld currently runs as an unconfined_service_t.
|
||||||
|
|
||||||
|
Edit to service file so that the daemon is launched as an initrc_t.
|
||||||
|
|
||||||
|
Signed-off-by: Leah Leshchinsky <lleshchi@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/redhat/stalld.service b/redhat/stalld.service
|
||||||
|
index e0eb4b77b0a7..bcd4b767f629 100644
|
||||||
|
--- a/redhat/stalld.service
|
||||||
|
+++ b/redhat/stalld.service
|
||||||
|
@@ -9,7 +9,7 @@ ExecStartPre=/usr/bin/throttlectl off
|
||||||
|
|
||||||
|
# In case the regex passed to IT or IP includes C escape sequences,
|
||||||
|
# use ${IT} or ${IP} instead of $IT or $IP
|
||||||
|
-ExecStart=/usr/bin/stalld --systemd $CLIST $AGGR $BP $BR $BD $THRESH $LOGGING $FG $PF $IT $IP
|
||||||
|
+ExecStart=/bin/sh -c "/usr/bin/stalld --systemd $CLIST $AGGR $BP $BR $BD $THRESH $LOGGING $FG $PF $IT $IP"
|
||||||
|
ExecStopPost=/usr/bin/throttlectl on
|
||||||
|
CPUSchedulingPolicy=fifo
|
||||||
|
CPUSchedulingPriority=10
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: stalld
|
Name: stalld
|
||||||
Version: 1.17
|
Version: 1.17
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Daemon that finds starving tasks and gives them a temporary boost
|
Summary: Daemon that finds starving tasks and gives them a temporary boost
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -14,6 +14,8 @@ BuildRequires: systemd-rpm-macros
|
|||||||
|
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
|
|
||||||
|
Patch0: Start-stalld-service-as-initrc_t.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The stalld program monitors the set of system threads,
|
The stalld program monitors the set of system threads,
|
||||||
looking for threads that are ready-to-run but have not
|
looking for threads that are ready-to-run but have not
|
||||||
@ -23,7 +25,7 @@ boost using the SCHED_DEADLINE policy. The default is to
|
|||||||
allow 10 microseconds of runtime for 1 second of clock time.
|
allow 10 microseconds of runtime for 1 second of clock time.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build CFLAGS="%{optflags} %{build_cflags} -DVERSION="\\\"%{version}\\\""" LDFLAGS="%{build_ldflags}"
|
%make_build CFLAGS="%{optflags} %{build_cflags} -DVERSION="\\\"%{version}\\\""" LDFLAGS="%{build_ldflags}"
|
||||||
@ -51,6 +53,14 @@ allow 10 microseconds of runtime for 1 second of clock time.
|
|||||||
%systemd_postun_with_restart %{name}.service
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 20 2022 Leah Leshchinsky <lleshchi@redhat.com> - 1.17-3
|
||||||
|
- Fix changelog date
|
||||||
|
Resolves:rhbz#2126495
|
||||||
|
|
||||||
|
* Tue Sep 13 2022 Leah Leshchinsky <lleshchi@redhat.com> - 1.17-2
|
||||||
|
- Start stalld service as initrc_t
|
||||||
|
Resolves:rhbz#2126495
|
||||||
|
|
||||||
* Fri Jul 22 2022 John Kacur <jkacur@redhat.com> - 1.17-1
|
* Fri Jul 22 2022 John Kacur <jkacur@redhat.com> - 1.17-1
|
||||||
- rebase to upstream v1.17
|
- rebase to upstream v1.17
|
||||||
Resolves: rhbz#2109973
|
Resolves: rhbz#2109973
|
||||||
|
Loading…
Reference in New Issue
Block a user