From 9b65c2663d59f868959eacee6b26a4d80454f980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 18 Feb 2013 13:45:32 +0100 Subject: [PATCH] application: consts moved to consts file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/consts.py | 20 +++++++++++--------- tuned/daemon/application.py | 3 --- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/tuned/consts.py b/tuned/consts.py index c93fc6e..06b90c4 100644 --- a/tuned/consts.py +++ b/tuned/consts.py @@ -1,12 +1,14 @@ -LOAD_DIRECTORIES = ["/usr/lib/tuned", "/etc/tuned"] -AUTODETECT_FILE = "autodetect.conf" -DEFAULT_PROFILE = "balanced" -SYSTEM_RELEASE_FILE = "/etc/system-release-cpe" ACTIVE_PROFILE_FILE = "/etc/tuned/active_profile" -LOG_FILENAME = "/var/log/tuned/tuned.log" -LOG_FILE_MAXBYTES = 100*1000 +AUTODETECT_FILE = "autodetect.conf" +DAEMONIZE_PARENT_TIMEOUT = 5 +DBUS_BUS = "com.redhat.tuned" +DBUS_INTERFACE = "com.redhat.tuned.control" +DBUS_OBJECT = "/Tuned" +DEFAULT_PROFILE = "balanced" +LOAD_DIRECTORIES = ["/usr/lib/tuned", "/etc/tuned"] # number of backups LOG_FILE_COUNT = 2 -DBUS_BUS = "com.redhat.tuned" -DBUS_OBJECT = "/Tuned" -DBUS_INTERFACE = "com.redhat.tuned.control" +LOG_FILE_MAXBYTES = 100*1000 +LOG_FILENAME = "/var/log/tuned/tuned.log" +PID_FILE = "/run/tuned/tuned.pid" +SYSTEM_RELEASE_FILE = "/etc/system-release-cpe" diff --git a/tuned/daemon/application.py b/tuned/daemon/application.py index a65e043..86a006e 100644 --- a/tuned/daemon/application.py +++ b/tuned/daemon/application.py @@ -9,9 +9,6 @@ import sys import select import tuned.consts as consts -PID_FILE = "/run/tuned/tuned.pid" -DAEMONIZE_PARENT_TIMEOUT = 5 - log = tuned.logs.get() __all__ = ["Application"]