mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
[XEND] Move all of the various log files created by xen to
be under /var/log/xen instead of under /var/log directly. This has the advantage of cleaning things up a little and also can make it easier to restrict the permissions needed by xend. Signed-off-by: Jeremy Katz <katzj@redhat.com>
This commit is contained in:
1 parent
10a74ed0a2
commit
b643712258
13 files changed
+17
-16
No files matched your search
@@ -43,8 +43,8 @@ TITLE_RE = re.compile(r'<title>(.*)</title>')
|
||||
|
||||
FILES_TO_SEND = [ '/var/log/' + x for x in
|
||||
[ 'syslog', 'messages', 'debug',
|
||||
'xend.log', 'xend-debug.log', 'xenstored-trace.log',
|
||||
'xen-hotplug.log' ] ]
|
||||
'xen/xend.log', 'xen/xend-debug.log', 'xen/xenstored-trace.log',
|
||||
'xen/xen-hotplug.log' ] ]
|
||||
#FILES_TO_SEND = [ ]
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class XendRoot:
|
||||
block_script_dir = "/etc/xen/scripts"
|
||||
|
||||
"""Default path to the log file. """
|
||||
logfile_default = "/var/log/xend.log"
|
||||
logfile_default = "/var/log/xen/xend.log"
|
||||
|
||||
"""Default level of information to be logged."""
|
||||
loglevel_default = 'DEBUG'
|
||||
|
||||
@@ -39,8 +39,8 @@ def getenv(var, val, conv=None):
|
||||
|
||||
# The following parameters could be placed in a configuration file.
|
||||
XEND_PID_FILE = '/var/run/xend.pid'
|
||||
XEND_TRACE_FILE = '/var/log/xend.trace'
|
||||
XEND_DEBUG_LOG = '/var/log/xend-debug.log'
|
||||
XEND_TRACE_FILE = '/var/log/xen/xend.trace'
|
||||
XEND_DEBUG_LOG = '/var/log/xen/xend-debug.log'
|
||||
XEND_USER = 'root'
|
||||
XEND_DEBUG = getenv("XEND_DEBUG", 0, conv=int)
|
||||
XEND_DAEMONIZE = getenv("XEND_DAEMONIZE", not XEND_DEBUG, conv=int)
|
||||