summaryrefslogtreecommitdiffstats
path: root/cpupower.service
diff options
context:
space:
mode:
Diffstat (limited to 'cpupower.service')
-rw-r--r--cpupower.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpupower.service b/cpupower.service
new file mode 100644
index 000000000..5f10ab7ee
--- /dev/null
+++ b/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