On 2018-11-04, John Long <codeb...@inbox.lv> wrote:
> On Sun, 2018-11-04 at 10:46 +0100, Antoine Jacoutot wrote:
>> 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.
>
> I did not understand why it worked this way. Thanks for the
> explanation!
>
> /jl
>
>
>

In order to do what you're asking for, set minidlna_flags=-R in
rc.conf.local by hand, then you can use "rcctl start minidlna"
as normal. As long as you don't use enable/disable you won't
need to change it again.


Reply via email to