On Sun, Nov 04, 2018 at 03:57:30AM +0100, Klemens Nanni wrote: > On Sun, Nov 04, 2018 at 12:41:17AM +0000, John Long wrote: > > If I use rcctl set to set minidlna's flags to -R it seems it will only > > allow me to do it when minidlna is enabled. I would like the flags to > > survive disablement because I don't want to start the minidlna server > > every time the box comes up. > Settings flags for disabled daemons is not possible as rcctl tells you. > > Keeping flags when disabling daemons with rcctl is currently not > possible. The only way to do so is by commenting the rc.conf.local line > manually.
Note that it would be easy for rcctl to save the flags (basically only remove minidlna from the pkg_scripts variable). But that would make the behavior inconsistent with how base rc.d scripts behave. When you disable a base script, you must remove the foo_flags from rc.conf.local (and can't retain the flags). I prefer to have a consistent behavior, this is why rcctl works this way. -- Antoine