From b7e17941d99394210693a0fcd41a92270e7151e0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 25 Mar 2015 04:41:34 +0100 Subject: rts: Renaming config, script and systemd service files to rts. --- README.md | 8 ++++---- config/rt-settings | 7 ------- config/rts | 7 +++++++ scripts/rt-settings | 8 -------- scripts/rts | 8 ++++++++ system/rt-settings.service | 13 ------------- system/rt-settings@.service | 13 ------------- system/rts.service | 13 +++++++++++++ system/rts@.service | 13 +++++++++++++ 9 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 config/rt-settings create mode 100644 config/rts delete mode 100755 scripts/rt-settings create mode 100755 scripts/rts delete mode 100644 system/rt-settings.service delete mode 100644 system/rt-settings@.service create mode 100644 system/rts.service create mode 100644 system/rts@.service diff --git a/README.md b/README.md index 62abddb..4fdcd39 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# rt-settings +# rts ## About -rt-settings is a collection of systemd services and scripts that allow to set pre-defined real-time related scheduling settings (using [tuna](https://rt.wiki.kernel.org/index.php/Tuna) for example). +rts is a collection of systemd services and scripts that allow to set pre-defined real-time related scheduling settings (using [tuna](https://rt.wiki.kernel.org/index.php/Tuna) for example). ## Requirements @@ -9,8 +9,8 @@ rt-settings is a collection of systemd services and scripts that allow to set pr * tuna ## Usage -When starting the systemd service *rt-settings.service*, the general settings file */etc/rt-settings/rt-settings* will be sourced. -Using *rt-settings@.service* a configuration file (by the name of the word following the *@*) from the */etc/rt-settings/* folder. +When starting the systemd service *rts.service*, the general settings file */etc/rts/rts* will be sourced. +Using *rts@.service* a configuration file (by the name of the word following the *@*) from the */etc/rts/* folder. ## License This software and all of its components is licensed under the GPLv3. diff --git a/config/rt-settings b/config/rt-settings deleted file mode 100644 index c7a340b..0000000 --- a/config/rt-settings +++ /dev/null @@ -1,7 +0,0 @@ -# General rt-settings -# This file will be sourced upon starting the systemd service rt-settings.service. -# Insert below any commands that should be executed upon starting of above mentioned service on a real-time kernel. -# A good starting point on how to use tuna for this, can be found in RedHats documentation -# (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Tuna_User_Guide/index.html) -# or in the examples in /etc/rt-settings/examples/. - diff --git a/config/rts b/config/rts new file mode 100644 index 0000000..c7a340b --- /dev/null +++ b/config/rts @@ -0,0 +1,7 @@ +# General rt-settings +# This file will be sourced upon starting the systemd service rt-settings.service. +# Insert below any commands that should be executed upon starting of above mentioned service on a real-time kernel. +# A good starting point on how to use tuna for this, can be found in RedHats documentation +# (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Tuna_User_Guide/index.html) +# or in the examples in /etc/rt-settings/examples/. + diff --git a/scripts/rt-settings b/scripts/rt-settings deleted file mode 100755 index 47f20de..0000000 --- a/scripts/rt-settings +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -#Applies real-time kernel specific settings found in /etc/rt-settings.d/* - -if [ "$1" ]; then - . /etc/rt-settings/"$1" -else - . /etc/rt-settings/rt-settings -fi diff --git a/scripts/rts b/scripts/rts new file mode 100755 index 0000000..47f20de --- /dev/null +++ b/scripts/rts @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +#Applies real-time kernel specific settings found in /etc/rt-settings.d/* + +if [ "$1" ]; then + . /etc/rt-settings/"$1" +else + . /etc/rt-settings/rt-settings +fi diff --git a/system/rt-settings.service b/system/rt-settings.service deleted file mode 100644 index b458172..0000000 --- a/system/rt-settings.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Apply Realtime-Kernel specific settings -After=multi-user.target sound.target -ConditionKernelCommandLine=systemd.setenv=REALTIME=true -ConditionFileIsExecutable=/usr/bin/tuna - -[Service] -Type=oneshot -ExecStart=/usr/lib/systemd/scripts/rt-settings -RemainAfterExit=true - -[Install] -WantedBy=multi-user.target diff --git a/system/rt-settings@.service b/system/rt-settings@.service deleted file mode 100644 index 84bbdba..0000000 --- a/system/rt-settings@.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Apply Realtime-Kernel specific settings -After=multi-user.target sound.target -ConditionKernelCommandLine=systemd.setenv=REALTIME=true -ConditionFileIsExecutable=/usr/bin/tuna - -[Service] -Type=oneshot -ExecStart=/usr/lib/systemd/scripts/rt-settings %i -RemainAfterExit=true - -[Install] -WantedBy=multi-user.target diff --git a/system/rts.service b/system/rts.service new file mode 100644 index 0000000..b458172 --- /dev/null +++ b/system/rts.service @@ -0,0 +1,13 @@ +[Unit] +Description=Apply Realtime-Kernel specific settings +After=multi-user.target sound.target +ConditionKernelCommandLine=systemd.setenv=REALTIME=true +ConditionFileIsExecutable=/usr/bin/tuna + +[Service] +Type=oneshot +ExecStart=/usr/lib/systemd/scripts/rt-settings +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target diff --git a/system/rts@.service b/system/rts@.service new file mode 100644 index 0000000..84bbdba --- /dev/null +++ b/system/rts@.service @@ -0,0 +1,13 @@ +[Unit] +Description=Apply Realtime-Kernel specific settings +After=multi-user.target sound.target +ConditionKernelCommandLine=systemd.setenv=REALTIME=true +ConditionFileIsExecutable=/usr/bin/tuna + +[Service] +Type=oneshot +ExecStart=/usr/lib/systemd/scripts/rt-settings %i +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf