diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1e9ae84 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rtctl-1.13.tar.bz2 diff --git a/.rtctl.metadata b/.rtctl.metadata new file mode 100644 index 0000000..448ddc8 --- /dev/null +++ b/.rtctl.metadata @@ -0,0 +1 @@ +eb046c6fb02eff54d1907c2b003bbc076eed6ded SOURCES/rtctl-1.13.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-adjusted-startup-script-messages.patch b/SOURCES/0001-adjusted-startup-script-messages.patch new file mode 100644 index 0000000..0cab35d --- /dev/null +++ b/SOURCES/0001-adjusted-startup-script-messages.patch @@ -0,0 +1,70 @@ +From a7707dfd7b1f993b695cdec6c1f2713ba6f98e1a Mon Sep 17 00:00:00 2001 +From: "Luis Claudio R. Goncalves" +Date: Mon, 29 Dec 2014 23:54:00 -0200 +Subject: [PATCH] adjusted startup script messages + +Related: rhbz#1162768 + +Signed-off-by: Luis Claudio R. Goncalves +--- + rtctl.service | 2 +- + rtctl.spec | 5 ++++- + rtctl_wrapper | 2 +- + 3 files changed, 6 insertions(+), 3 deletions(-) + +diff --git a/rtctl.service b/rtctl.service +index b036b75..b4e91f5 100644 +--- a/rtctl.service ++++ b/rtctl.service +@@ -1,5 +1,5 @@ + [Unit] +-Description=Sets the real-time priority of kernel threads ++Description=kernel threads real time priority setup + After=syslog.target + + ## Not a daemon +diff --git a/rtctl.spec b/rtctl.spec +index 7e3bd72..4c99637 100644 +--- a/rtctl.spec ++++ b/rtctl.spec +@@ -1,6 +1,6 @@ + Name: rtctl + Version: 1.13 +-Release: 1%{?dist} ++Release: 2%{?dist} + Summary: Scripts for controlling scheduling priorities of system threads + Group: Applications/System + License: GPL +@@ -47,6 +47,9 @@ systemctl disable rtctl + fi + + %changelog ++* Mon Dec 29 2014 Luis Claudio R. Goncalves - 1.13-2 ++- adjusted startup script messages (1162768) ++ + * Tue Dec 23 2014 Luis Claudio R. Goncalves - 1.13-1 + - make startup logic compatible with systemd (1162768) + - product name cleanup (1173311) +diff --git a/rtctl_wrapper b/rtctl_wrapper +index def4387..070ac41 100755 +--- a/rtctl_wrapper ++++ b/rtctl_wrapper +@@ -9,6 +9,7 @@ on_rt () { + + # exit if not on a realtime kernel + if ! on_rt; then ++ echo "Not running on a RHEL-RT kernel!" + exit 0 + fi + +@@ -42,7 +43,6 @@ if [ "$CPUSPEED" = "off" ] && service_running cpuspeed; then + disable_service cpuspeed + fi + +-echo -n $"Setting kernel thread priorities: " + rtctl reset + RET=$? + exit $RET +-- +2.1.0 + diff --git a/SPECS/rtctl.spec b/SPECS/rtctl.spec new file mode 100644 index 0000000..f36b9fe --- /dev/null +++ b/SPECS/rtctl.spec @@ -0,0 +1,61 @@ +Name: rtctl +Version: 1.13 +Release: 2%{?dist} +Summary: Scripts for controlling scheduling priorities of system threads +Group: Applications/System +License: GPL +BuildArch: noarch +Source0: rtctl-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Obsoletes: set_kthread_prio <= 1.0.1 +Provides: set_kthread_prio + +Patch001: 0001-adjusted-startup-script-messages.patch + +%description +rtctl is a set of scripts used to manipulate the scheduling priorities of +groups of system threads. + +%prep +%setup +%patch001 -p1 + +%build +make + +%install +rm -rf $RPM_BUILD_ROOT +make DEST=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%attr(0755, root, root) /usr/sbin/rtctl +%attr(0755, root, root) /usr/bin/rtctl_wrapper +%config(noreplace) /etc/rtgroups +%config(noreplace) /etc/sysconfig/rtctl +/etc/systemd/system/rtctl.service +/usr/share/man/man1/rtctl.1.gz +/usr/share/man/man5/rtgroups.5.gz + +%post +systemctl enable rtctl + +%preun +if [ "$1" = "0" ] ; then # uninstall +systemctl disable rtctl +fi + +%changelog +* Mon Dec 29 2014 Luis Claudio R. Goncalves - 1.13-2 +- adjusted startup script messages (1162768) + +* Tue Dec 23 2014 Luis Claudio R. Goncalves - 1.13-1 +- make startup logic compatible with systemd (1162768) +- product name cleanup (1173311) + +* Fri Sep 12 2014 Luis Claudio R. Goncalves - 1.12-4 +- rtctl for RHEL-RT +