On 3 May 2014 05:23, Steve Langasek <vor...@debian.org> wrote:
> On Fri, May 02, 2014 at 09:07:05PM -0700, Cameron Norman wrote:
>> Dimitri,
>
>> Your special casing of force-reload assumes the init script would have
>> put the action in the same boat as reload. Perusing through my
>> installed packages, force-reload is often paired with restart instead.
>> I am not saying you should change it (restarting is the more
>> disruptive action, so doing it when reload is the actual desire is
>> bad), but the user should definitely be told what was assumed to be
>> their request.
>
> force-reload is defined as:
>
>      `force-reload'
>           cause the configuration to be reloaded if the service supports
>           this, otherwise restart the service.
>
> So, force-reload *guarantees* that the service configuration is reloaded,
> either by doing a soft reload if this is supported, or by restarting the
> service if not supported.
>
> We cannot know whether 'reload $service' will cause the configuration to
> actually be reloaded for the upstart job in question, so this mapping does
> not fulfill the guarantee that the configuration will be reloaded.
> Therefore, 'force-reload' must be mapped to 'restart' instead.
>

In that case service(8) needs an update as well, as that currently
maps force-reload to reload, and is where i got the desired behavior
from. But yeah, debian policy mandates force-reload to be as per
above.


-- 
Regards,

Dimitri.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to