[Pkg-sysvinit-devel] Bug#502195: Bug#502195: invoke-rc.d with action [force-]reload doesn't obey runlevel constraints
Henrique de Moraes Holschuh
hmh at debian.org
Wed Oct 15 11:00:45 UTC 2008
On Wed, 15 Oct 2008, Paolo Miotto wrote:
> Quoting Henrique de Moraes Holschuh <hmh at debian.org>:
>> On Tue, 14 Oct 2008, Paolo Miotto wrote:
>>> I think that actions like reload or force-reload must work like start
>>> and restarting, doing nothing if the service is disabled in current
>>> runlevel.
>>
>> Maybe for force-reload. As for reload, if that is suceeding on a service
>> that is not started (i.e. it ends up starting the service), that is a BUG on
>> the initscript itself, and not a small one.
>
> Well, it is OK that a script called with reload fails if the service is
> not running, but the point is: why ask a reload to a service that is not
> running (because disabled), maybe failing even a pre/post install script?
Because reload (and force-reload, if it was a sane thing which it isn't) are
supposed to control a service if that service is running, regardless of the
reason.
Which is really not related at all with the runlevel. The admin may have
started it manually, and the service still has to be reloaded in that case.
> It is not cleaner to skip the request at all?
Unfortunately, no.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
More information about the Pkg-sysvinit-devel
mailing list