Hey Api.

This one seems urgent because of log overflows caused by logrotate
failing.

Thanks,
Daniel

--snip--
CA-35881: mkdir /var/log/blktap during boot.

Logrotate requires at least the search path to exist. If that fails,
Xapi tends to flood xensource.log with error messages over time.

Signed-off-by: Daniel Stodden <[email protected]>

diff -r 9b1f5588c72c -r 3424887e87d5 scripts/init.d-xenservices
--- a/scripts/init.d-xenservices        Mon Dec 14 11:29:31 2009 -0800
+++ b/scripts/init.d-xenservices        Mon Dec 14 11:33:38 2009 -0800
@@ -62,6 +62,7 @@
 
        /usr/sbin/xenconsoled
        /usr/sbin/blktapctrl
+       [ -d /var/log/blktap ] || mkdir /var/log/blktap
        
        # Delete rubbish from xapi's private tree in xenstore, once per boot 
(not once per
        # xapi invocation since the data should be persistent across xapi 
restarts)

CA-35881: mkdir /var/log/blktap during boot.

Logrotate requires at least the search path to exist. If that fails,
Xapi tends to flood xensource.log with error messages over time.

Signed-off-by: Daniel Stodden <[email protected]>

diff -r 9b1f5588c72c -r 3424887e87d5 scripts/init.d-xenservices
--- a/scripts/init.d-xenservices	Mon Dec 14 11:29:31 2009 -0800
+++ b/scripts/init.d-xenservices	Mon Dec 14 11:33:38 2009 -0800
@@ -62,6 +62,7 @@
 
 	/usr/sbin/xenconsoled
 	/usr/sbin/blktapctrl
+	[ -d /var/log/blktap ] || mkdir /var/log/blktap
 	
 	# Delete rubbish from xapi's private tree in xenstore, once per boot (not once per
 	# xapi invocation since the data should be persistent across xapi restarts)
_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/mailman/listinfo/xen-api

Reply via email to