That is done by the emhttp process which calls this script.   Sounds like something else is spinning the drives up.   I have a wrapper around the commands whilst in rc and was working on SAS spinup/down and fixes to smartctl.   Below is part of my go file and attached are the two wrappers.   hdparm and smartctl are moved  and wrappers replace them and call the real command. You need to check it points to the correct real command in the wrapper.  
    • Thanks
    1