stop() {
echo -n $"Shutting down ctdbd service: "
ctdb shutdown
- sleep 1
- killall -q -9 ctdbd
+ killall -q -0 ctdbd && {
+ # if it survived, give it 1 second then kill it with extreme prejudice
+ sleep 1
+ killall -q -9 ctdbd
+ }
RETVAL=$?
case $init_style in
suse)
# make sure samba is not already started
service smb stop > /dev/null 2>&1
service winbind stop > /dev/null 2>&1
+ killall -0 -q smbd winbindd && {
+ sleep 1
+ # make absolutely sure samba is dead
+ killall -q -9 smbd winbindd
+ }
# start Samba service. Start it reniced, as under very heavy load
# the number of smbd processes will mean that it leaves few cycles for