From 326a178dff608e3ba82bc04d8fed3a9aab843e2f Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 4 Jun 2016 01:44:13 +0200 Subject: system/*: Updating service file dependency to /sys/kernel/realtime existence. README.rst: Removing outdated information about REALTIME kernel command line parameter. NEWS: Adding information regarding version 0.2.0 of rts. --- NEWS | 5 ++++- README.rst | 11 +---------- system/rts.service | 2 +- system/rts@.service | 2 +- 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 -- cgit v1.2.3-70-g09d2