From: Roy B. <roy...@gl...> - 2005-09-20 22:23:27
|
Two problems with the FreeBSD RCNG support in the startup script The RCNG case is missing an 'exit 0' causing the startup script to comlain that 'SOMETHING IS WRONG WITH THE SMARTD STARTUP SCRIPT' The code needs to initialise smartd_enable to "NO" if it's not already set (otherwise the RCNG code will complain if the user hasn't set it). It is also traditional to initialise smartd_flags (to the empty string if there's nothing more appropriate) There doesn't seem to be a single standard idiom for this, but this seems as good an approach as any: smartd_enable=${smartd_enable:-"NO"} smartd_flags=${smartd_flags:-""} -roy |