aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS5
-rw-r--r--README.rst11
-rw-r--r--system/rts.service2
-rw-r--r--system/rts@.service2
4 files changed, 7 insertions, 13 deletions
diff --git a/NEWS b/NEWS
index 797cc01..34f82ad 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,10 @@
rts
-CHANGES WITH 0.1
+CHANGES WITH 0.2
+ * Updating rts to be dependant upon the existence of /sys/kernel/realtime
+ instead of a kernel command line parameter.
+CHANGES WITH 0.1
* Adding profile for Lenovo W540 and Lenovo X220 using a DeLock ExpressCard/34 for Firewire 800
* Moving script to /usr/bin/
diff --git a/README.rst b/README.rst
index ca817ba..1237060 100644
--- a/README.rst
+++ b/README.rst
@@ -1,6 +1,7 @@
rts
===
rts - as in `*r*eal-*t*ime *s*settings` is a script used by a |systemd| |systemd.service|, allowing to set pre-defined real-time related scheduling settings.
+Its service files are dependant upon the real-time kernel, which means, they will only start if */sys/kernel/realtime* is present and not empty.
This software and all of its components are licensed under the GPLv3.
Requirements
@@ -8,16 +9,6 @@ Requirements
* |linux-rt|
* |tuna|
-"REALTIME" kernel parameter
----------------------------
-| *rts.service* and *rts@.service* are dependant on the |kernel_parameter| *"systemd.setenv=REALTIME=true"*. The option itself sets nothing but an Environment for systemd.
-| This enables the services to by using *ConditionKernelCommandLine* in their *[Unit]* sections, if running a |real-time_kernel|.
-| Simply add this to your kernel parameters (for |linux-rt|), using |grub|, |syslinux|, or |systemd-boot|:
-
- .. code:: bash
-
- systemd.setenv=REALTIME=true
-
Usage
-----
| When starting the systemd service *rts.service*, the general settings file */etc/rts/rts* will be sourced.
diff --git a/system/rts.service b/system/rts.service
index bb51de3..20ef2b5 100644
--- a/system/rts.service
+++ b/system/rts.service
@@ -1,8 +1,8 @@
[Unit]
Description=Apply Realtime-Kernel specific settings
After=multi-user.target sound.target
-ConditionKernelCommandLine=systemd.setenv=REALTIME=true
ConditionFileIsExecutable=/usr/bin/tuna
+ConditionFileNotEmpty=/sys/kernel/realtime
[Service]
Type=oneshot
diff --git a/system/rts@.service b/system/rts@.service
index 156b80f..c007517 100644
--- a/system/rts@.service
+++ b/system/rts@.service
@@ -1,8 +1,8 @@
[Unit]
Description=Apply Realtime-Kernel specific settings according to a profile
After=multi-user.target sound.target
-ConditionKernelCommandLine=systemd.setenv=REALTIME=true
ConditionFileIsExecutable=/usr/bin/tuna
+ConditionFileNotEmpty=/sys/kernel/realtime
[Service]
Type=oneshot