Created attachment 205009 [details]
Example of changes to allow arbitrary arguments on smartd launch
Patch demonstrates new service "mysmartd" that allows adding arbitrary smartd arguments via "mysmartd_args"
Propose updating /usr/local/etc/rc.d/smartd to similarly allow arbitrary arguments specified in /etc/rc.conf or /usr/local/etc/rc.conf via "smartd_args".
Normally you can already specify extra flags through rcname_flags=“flaghere”. This works with every rc script even if it is not specified in the script itself because the rc framework takes account for this. So try with smartd_flags= In rc.conf. The framework will append those flags to the run command.
Wow, somehow I've never come across this before. Very good to know, thanks!
I think it is not common knowledge under the users although very usefull. We should document this somewhere. :-)