Diff of /trunk/sbin/runscript.sh

Revision 426 Revision 427
196 then 196 then
197 eerror "ERROR: problems stopping dependent services." 197 eerror "ERROR: problems stopping dependent services."
198 eerror " \"\${myservice}\" is still up." 198 eerror " \"\${myservice}\" is still up."
199 else 199 else
200 # Now that deps are stopped, stop our service 200 # Now that deps are stopped, stop our service
201 (filter_environ; stop) 201 stop
202 retval="\$?" 202 retval="\$?"
203 fi 203 fi
204 204
205 if [ "\${retval}" -ne 0 ] 205 if [ "\${retval}" -ne 0 ]
206 then 206 then
313 eerror " './\${myservice} broken' for a list of those" 313 eerror " './\${myservice} broken' for a list of those"
314 eerror " services. \"\${myservice}\" was not started." 314 eerror " services. \"\${myservice}\" was not started."
315 retval=1 315 retval=1
316 elif [ "\${retval}" -eq 0 ] && ! broken "\${myservice}" &>/dev/null 316 elif [ "\${retval}" -eq 0 ] && ! broken "\${myservice}" &>/dev/null
317 then 317 then
318 (filter_environ; start) 318 start
319 retval="\$?" 319 retval="\$?"
320 fi 320 fi
321 321
322 if [ "\${retval}" -ne 0 ] && is_runlevel_start 322 if [ "\${retval}" -ne 0 ] && is_runlevel_start
323 then 323 then
407 if [ "\${x}" = "\${arg}" ] 407 if [ "\${x}" = "\${arg}" ]
408 then 408 then
409 if typeset -F "\${x}" &>/dev/null 409 if typeset -F "\${x}" &>/dev/null
410 then 410 then
411 # Run the homegrown function 411 # Run the homegrown function
412 (filter_environ; "\${x}") 412 "\${x}"
413 413
414 return \$? 414 return \$?
415 fi 415 fi
416 fi 416 fi
417 done 417 done

Legend:
 Removed from v.426 changed lines Added in v.427