[cpupowerutils] Make the cpupower service file work
Petr Sabata
psabata at fedoraproject.org
Fri Jul 8 09:41:48 UTC 2011
commit f57901c1535708c848ac9eed1b5c6727a62be03e
Author: Petr Sabata <contyk at redhat.com>
Date: Fri Jul 8 11:41:14 2011 +0200
Make the cpupower service file work
cpupower.service | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/cpupower.service b/cpupower.service
index dee5c65..5f10ab7 100644
--- a/cpupower.service
+++ b/cpupower.service
@@ -4,8 +4,10 @@ After=syslog.target
[Service]
Type=oneshot
-ExecStart=/usr/bin/cpupower ${CPUPOWER_START_OPTS}
-ExecStop=/usr/bin/cpupower ${CPUPOWER_STOP_OPTS}
+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
More information about the scm-commits
mailing list