aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/cpupower.service
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/cpupower.service')
-rw-r--r--SOURCES/cpupower.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/SOURCES/cpupower.service b/SOURCES/cpupower.service
index e69de29..5f10ab7 100644
--- a/SOURCES/cpupower.service
+++ b/SOURCES/cpupower.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Configure CPU power related settings
+After=syslog.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/sysconfig/cpupower
+ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS
+ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS
+
+[Install]
+WantedBy=multi-user.target