aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-03-22 01:19:57 +0100
committerDavid Runge <dave@sleepmap.de>2015-03-22 01:19:57 +0100
commita2d1eac36b95a99f154a8a6a62f3d253a5848d19 (patch)
tree9eefb341e6021bb863bb83bd1f79f2a04c3c9c7c /system
downloadrts-a2d1eac36b95a99f154a8a6a62f3d253a5848d19.tar.gz
rts-a2d1eac36b95a99f154a8a6a62f3d253a5848d19.tar.bz2
rts-a2d1eac36b95a99f154a8a6a62f3d253a5848d19.tar.xz
rts-a2d1eac36b95a99f154a8a6a62f3d253a5848d19.zip
rt-settings: Adding first systemd service and script. The script will source every file in /etc/rt-settings.d/*
Diffstat (limited to 'system')
-rw-r--r--system/rt-settings.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/rt-settings.service b/system/rt-settings.service
new file mode 100644
index 0000000..b458172
--- /dev/null
+++ b/system/rt-settings.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