------------------------------------------------------------
revno: 482
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
branch nick: tridge
timestamp: Wed 2007-06-06 19:46:25 +1000
message:
disable a node if testparm thinks there is a error, or warning, or an
unrecognised option
modified:
config/events.d/50.samba samba-20070601105340-vlcvnp6euoj3zdwy-3
=== modified file 'config/events.d/50.samba'
--- a/config/events.d/50.samba 2007-06-06 02:08:42 +0000
+++ b/config/events.d/50.samba 2007-06-06 09:46:25 +0000
@@ -52,6 +52,11 @@
;;
monitor)
+ testparm -st 2>&1 | egrep '^WARNING|^ERROR|^Unknown' && {
+ echo "`date` ERROR: testparm shows smb.conf is not clean"
+ exit 1
+ }
+
smb_dirs=`testparm -st 2> /dev/null | egrep '^\s*path = ' | cut -d=
-f2`
ctdb_check_directories "Samba" $smb_dirs