Commit ae3f6298 authored by Jaroslav Škarvada's avatar Jaroslav Škarvada

tuned: config file suffix changed to .conf

profiles: config files renamed to end with .conf
man: minor update of tuned.conf.5
Makefile: install tuned_powertop_profile.py script
parent f0e955e9
......@@ -40,6 +40,10 @@ install:
install -m 0755 $$file $(DESTDIR)/usr/sbin/; \
done
# tools
mkdir -p $(DESTDIR)/usr/bin
install -m 0755 experiments/tuned_powertop_profile.py $(DESTDIR)/usr/bin
# configuration files
mkdir -p $(DESTDIR)/etc/tuned
echo -n default > $(DESTDIR)/etc/tuned/active_profile
......
......@@ -142,8 +142,8 @@ class PowertopProfile:
return True
def generateTunedConf(self, profile):
print "Generating Tuned config file", os.path.join(self.output, "tuned.cfg")
f = open(os.path.join(self.output, "tuned.cfg"), "w")
print "Generating Tuned config file", os.path.join(self.output, "tuned.conf")
f = open(os.path.join(self.output, "tuned.conf"), "w")
f.write(TUNED_CONF % ("include=" + profile))
f.close()
......
.TH "tuned.cfg" "5" "13 Mar 2012" "Jan Kaluza" "tuned.cfg file format description"
.TH "tuned.conf" "5" "13 Mar 2012" "Jan Kaluza" "tuned.conf file format description"
.SH NAME
tuned.cfg \- Tuned profile definition
tuned.conf \- Tuned profile definition
.SH DESCRIPTION
This man page documents format of Tuned 2.0 profile definition files. Profile is
stored in /etc/tuned/<profile_name>/tuned.cfg or in
/usr/lib/tuned/<profile_name>/tuned.cfg file where the /etc/tuned/ directory has
stored in /etc/tuned/<profile_name>/tuned.conf or in
/usr/lib/tuned/<profile_name>/tuned.conf file where the /etc/tuned/ directory has
higher priority.
The \fBtuned.cfg\fR configures the profile and it is in ini-file format.
The \fBtuned.conf\fR configures the profile and it is in ini-file format.
.SH MAIN SECTION
The main section is called "[main]" and can contain following options:
......@@ -58,10 +58,9 @@ net.core.rmem_default = 262144
net.core.wmem_default = 262144
# Define my_script plugin
# Since there is no "replace=1" option, this plugin will not replace
# any script plugin defined in "included" profile and both scripts
# (profile.sh from this profile and script from "included" profile)
# will be run.
# Both scripts (profile.sh from this profile and script from "included"
# profile) will be run, because if there is no "replace=1" option the
# default action is merge.
[my_script]
type=script
script=profile.sh
......
......@@ -102,7 +102,7 @@ class Tuned_adm:
print "Available profiles:"
for profile in profiles:
if os.path.exists(os.path.join(profile, "tuned.cfg")):
if os.path.exists(os.path.join(profile, "tuned.conf")):
print "-", os.path.basename(profile)
self.show_active_profile()
......
......@@ -42,11 +42,11 @@ class Profile(object):
if name.startswith("/"):
return name
profile = "/etc/tuned/%s/tuned.cfg" % (name)
profile = "/etc/tuned/%s/tuned.conf" % (name)
if os.path.exists(profile):
return profile
profile = "/usr/lib/tuned/%s/tuned.cfg" % (name)
profile = "/usr/lib/tuned/%s/tuned.conf" % (name)
if os.path.exists(profile):
return profile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment