summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@mdehaan.rdu.redhat.com>2007-09-26 12:34:32 -0400
committerroot <root@mdehaan.rdu.redhat.com>2007-09-26 12:34:32 -0400
commitd927db2103910ef2f0a7cf7dca11a1d9d3f3c870 (patch)
treef6efa8583450fef9e7e151a4674fced1b4a7f1f4
parentb35cdb8ff2f87dc3e545ff54ffe829cfac1d6c52 (diff)
downloadthird_party-cobbler-d927db2103910ef2f0a7cf7dca11a1d9d3f3c870.tar.gz
third_party-cobbler-d927db2103910ef2f0a7cf7dca11a1d9d3f3c870.tar.xz
third_party-cobbler-d927db2103910ef2f0a7cf7dca11a1d9d3f3c870.zip
Move cobbler WebUI log file to Apache dir so it will gain the correct
SELinux context.
-rw-r--r--cobbler/webui/CobblerWeb.py2
-rw-r--r--config/cobblerd_rotate10
2 files changed, 10 insertions, 2 deletions
diff --git a/cobbler/webui/CobblerWeb.py b/cobbler/webui/CobblerWeb.py
index d8fb8bd..f361560 100644
--- a/cobbler/webui/CobblerWeb.py
+++ b/cobbler/webui/CobblerWeb.py
@@ -27,7 +27,7 @@ INVALID_CREDS="Login Required"
# set up logging
logger = logging.getLogger("cobbler.webui")
logger.setLevel(logging.DEBUG)
-ch = logging.FileHandler("/var/log/cobbler/webui.log")
+ch = logging.FileHandler("/var/log/httpd/cobbler_webui.log")
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
ch.setFormatter(formatter)
diff --git a/config/cobblerd_rotate b/config/cobblerd_rotate
index a7ad4d5..94fac8d 100644
--- a/config/cobblerd_rotate
+++ b/config/cobblerd_rotate
@@ -5,7 +5,15 @@
weekly
postrotate
if [ -f /var/lock/subsys/cobblerd ]; then
- /etc/init.d/cobblerd restart
+ /etc/init.d/cobblerd condrestart
fi
endscript
}
+
+/var/log/httpd/cobbler_wui.log {
+ missingok
+ notifempty
+ rotate 4
+ weekly
+}
+