summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2009-05-06 19:01:58 +0200
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-05-14 18:59:31 +1000
commit8e9736ac1f2366201d5edfd979c729dcc50287b0 (patch)
treebf2305ad7620a4c2854da6809fa5cd88ef75b0ff /ctdb
parent0d48af47411a3548063c23a7d7bf58447a35bda4 (diff)
downloadsamba-8e9736ac1f2366201d5edfd979c729dcc50287b0.tar.gz
samba-8e9736ac1f2366201d5edfd979c729dcc50287b0.tar.xz
samba-8e9736ac1f2366201d5edfd979c729dcc50287b0.zip
Remove error messages about a non-existing /var/log/log.ctdb when running ctdb with logging to syslog
(This used to be ctdb commit afdbf3c0df02decd823615134294abf2c8a8a5f3)
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tools/ctdb_diagnostics4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/tools/ctdb_diagnostics b/ctdb/tools/ctdb_diagnostics
index a9531d646c..7b48299433 100755
--- a/ctdb/tools/ctdb_diagnostics
+++ b/ctdb/tools/ctdb_diagnostics
@@ -133,10 +133,10 @@ show_all "ctdb statistics"
show_all "ctdb uptime"
echo "Showing log.ctdb"
-show_all "tail -100 /var/log/log.ctdb"
+show_all "test -f /var/log/log.ctdb && tail -100 /var/log/log.ctdb"
echo "Showing log.ctdb"
-show_all "tail -100 /var/log/log.ctdb"
+show_all "test -f /var/log/log.ctdb && tail -100 /var/log/log.ctdb"
show_all "tail -200 /var/log/messages"
show_all "tail -200 /etc/ctdb/state/vacuum.log"