Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

/root/scripts/bindwait.sh: Difference between revisions

From COCNM
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 02:19, 19 September 2013

#!/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin/
while [[ -z $(svstat /service/samba | grep [0-9]\ seconds) ]]; do true
	done

if [[ -z $(svstat /service/samba | grep [0-9][0-9]\ seconds) ]]; then
	/etc/init.d/bind9 stop
	while [[ -z $(svstat /service/samba | grep [0-9][0-9]\ seconds) ]]; do true
	done
	/etc/init.d/bind9 start
fi

exit 0