diff options
author | Philip Knirsch <pknirsch@hamburg.stuttgart.redhat.com> | 2009-02-25 11:45:48 +0100 |
---|---|---|
committer | Philip Knirsch <pknirsch@hamburg.stuttgart.redhat.com> | 2009-02-25 11:45:48 +0100 |
commit | ca552606191920c1f6d02c28b80273d2e9d4349a (patch) | |
tree | 33d7eda5f5b7ffe1d842a2c9395ea2a03650d01a /tuningplugins/net.py | |
parent | 1fa57228447abc46d58bcc377ab373c026ccd008 (diff) | |
download | tuned-ca552606191920c1f6d02c28b80273d2e9d4349a.tar.gz tuned-ca552606191920c1f6d02c28b80273d2e9d4349a.tar.xz tuned-ca552606191920c1f6d02c28b80273d2e9d4349a.zip |
- Added complete cleanup code in case of tuned exiting and/or
getting a SIGTERM to restore default values
- Made the disk tuning pluging less nosy if started as non-daemon
- Fixed missing self. in the tuned.py config handling
Diffstat (limited to 'tuningplugins/net.py')
-rw-r--r-- | tuningplugins/net.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tuningplugins/net.py b/tuningplugins/net.py index 687d306..4529253 100644 --- a/tuningplugins/net.py +++ b/tuningplugins/net.py @@ -36,6 +36,10 @@ class NetTuning: def init(self, config): self.config = config + def cleanup(self): + for dev in self.devidle.keys(): + os.system("ethtool -s "+dev+" advertise 0x03F") + def setTuning(self, load): disks = load.setdefault("NET", {}) for dev in disks.keys(): |