Rev 531: fixed testparm calls in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Mon Jun 11 03:56:50 GMT 2007
------------------------------------------------------------
revno: 531
revision-id: tridge at samba.org-20070611035650-5le1j4hug22kkd0o
parent: tridge at samba.org-20070611025038-dxsj8c9f9bfycrkk
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-06-11 13:56:50 +1000
message:
fixed testparm calls
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 09:46:25 +0000
+++ b/config/events.d/50.samba 2007-06-11 03:56:50 +0000
@@ -14,7 +14,7 @@
case $cmd in
startup)
# wait for all shared directories to become available
- smb_dirs=`testparm -st 2> /dev/null | egrep '^\s*path = ' | cut -d= -f2`
+ smb_dirs=`testparm -s 2> /dev/null | egrep '^\s*path = ' | cut -d= -f2`
ctdb_wait_directories "Samba" $smb_dirs
# make sure samba is not already started
@@ -28,7 +28,7 @@
service winbind start
# wait for the Samba tcp ports to become available
- smb_ports=`testparm -stv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`
+ smb_ports=`testparm -sv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`
ctdb_wait_tcp_ports "Samba" $smb_ports
;;
@@ -52,15 +52,15 @@
;;
monitor)
- testparm -st 2>&1 | egrep '^WARNING|^ERROR|^Unknown' && {
+ testparm -s 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`
+ smb_dirs=`testparm -s 2> /dev/null | egrep '^\s*path = ' | cut -d= -f2`
ctdb_check_directories "Samba" $smb_dirs
- smb_ports=`testparm -stv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`
+ smb_ports=`testparm -sv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`
ctdb_check_tcp_ports "Samba" $smb_ports
;;
More information about the samba-cvs
mailing list