components/bind/Solaris/dns-server.sh
changeset 4980 b0ec15659025
parent 892 fe7f5469cc2d
child 6227 a498cb624014
equal deleted inserted replaced
4979:43ca747f5e4a 4980:b0ec15659025
   119         /usr/sbin/rndc-confgen ${rndc_cmd_opts}
   119         /usr/sbin/rndc-confgen ${rndc_cmd_opts}
   120         if [ $? -ne 0 ]; then
   120         if [ $? -ne 0 ]; then
   121           echo "$I : Warning: rndc configuration failed! Use of 'rndc' to" \
   121           echo "$I : Warning: rndc configuration failed! Use of 'rndc' to" \
   122 		    "control 'named' may fail and 'named' may report further error" \
   122 		    "control 'named' may fail and 'named' may report further error" \
   123 		    "messages to the system log. This is not fatal. For more" \
   123 		    "messages to the system log. This is not fatal. For more" \
   124 		    "information see rndc(1M) and rndc-confgen(1M)." >&2
   124 		    "information see rndc(8) and rndc-confgen(8)." >&2
   125         fi
   125         fi
   126       fi
   126       fi
   127     fi
   127     fi
   128 
   128 
   129     # Check configuration file exists.
   129     # Check configuration file exists.
   135       result=${SMF_EXIT_ERR_CONFIG}
   135       result=${SMF_EXIT_ERR_CONFIG}
   136     fi
   136     fi
   137 
   137 
   138     if [ ${result} = ${SMF_EXIT_OK} ]; then
   138     if [ ${result} = ${SMF_EXIT_OK} ]; then
   139 	echo "$I: Executing: ${server} ${cmdopts}"
   139 	echo "$I: Executing: ${server} ${cmdopts}"
   140 	# Execute named(1M) with relevant command line options.  Note
   140 	# Execute named(8) with relevant command line options.  Note
   141 	# the server forks before reading named.conf(4) and so a
   141 	# the server forks before reading named.conf(5) and so a
   142 	# good exit code here does not mean the service is ready.
   142 	# good exit code here does not mean the service is ready.
   143 	${server} ${cmdopts}
   143 	${server} ${cmdopts}
   144 	result=$?
   144 	result=$?
   145 	if [ $result -ne 0 ]; then
   145 	if [ $result -ne 0 ]; then
   146 	  echo "$I : start failed! Check syslog for further information." >&2
   146 	  echo "$I : start failed! Check syslog for further information." >&2