From a7707dfd7b1f993b695cdec6c1f2713ba6f98e1a Mon Sep 17 00:00:00 2001
From: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
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 <lgoncalv@redhat.com>
---
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 <lgoncalv@redhat.com> - 1.13-2
+- adjusted startup script messages (1162768)
+
* Tue Dec 23 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 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