1
0
Fork 0
tuned/tuned
Jiri Mencak 2cc251c3f1 Add conditional profile loading
Normally, inclusion of any profile that is not found in profile
directories (/etc/tuned and /usr/lib/tuned) will fail at profile
application time.

Conditional profile loading can be useful in situations we do not
necessarily expect a certain included profile to exist.  Profile
application failures are undesirable in such cases.  Augment the
TuneD profile hierarchies by adding a functionality to conditionally
include a profile by prefixing its name by '-' symbol.

Example:
[main]
summary=An example TuneD profile demonstrating conditional loading
include=-profile1,profile2

In this example, the profile "profile1" is conditionally loaded/included
and no error/failure will be reported if the profile does not exist.
Then, the profile "profile2" is unconditionally loaded and errors will be
reported if it is not found in profile directories.

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2021-10-27 16:38:52 +02:00
..
admin Project renamed to TuneD 2021-05-17 22:09:02 +02:00
daemon Merge pull request #330 from CZerta/fixing_active_profile 2021-07-01 22:47:12 +02:00
exports Removing depedency on python-decorator package. 2021-07-07 10:40:41 +02:00
gtk Removing dependency on python-configobj. 2021-08-18 10:28:27 +02:00
hardware Merge branch 'master' into project-rename 2021-06-03 17:20:55 +02:00
monitors monitors: Fix adding a hotplugged device to a monitor 2019-03-06 19:51:10 +01:00
plugins scheduler: new option cgroup_ps_blacklist 2021-07-23 10:55:00 +02:00
profiles Add conditional profile loading 2021-10-27 16:38:52 +02:00
storage Fix pickle provider 2018-10-15 13:20:14 +02:00
units Project renamed to TuneD 2021-05-17 22:09:02 +02:00
utils Removing dependency on python-configobj. 2021-08-18 10:28:27 +02:00
__init__.py misc: bumped year in copyright to 2013 2013-11-27 09:30:07 +01:00
consts.py Removing dependency on python-configobj. 2021-08-18 10:28:27 +02:00
exceptions.py Create exception logger outside of TunedException class to not confuse logs.get method 2012-01-26 10:41:59 +01:00
logs.py Project renamed to TuneD 2021-05-17 22:09:02 +02:00
patterns.py separate design pattern bases 2011-12-14 17:40:31 +01:00
version.py new release (2.16.0-rc.1) 2021-07-07 23:46:06 +02:00