Le 04/11/2013 10:40, Henrique de Moraes Holschuh a écrit :
> reassign 728682 logrotate
> retitle 728682 logrotate: cronjob: please use invoke-rc.d --quiet
> thanks
>
> On Mon, 04 Nov 2013, Erwan David wrote:
>> /etc/cron.daily/logrotate:
>> invoke-rc.d: action rotate is unknown, but proceeding anyway.
>>
>> My /usr/bin/policy-rc.d does indeed treat the rotate action. However it is 
>> not documeted in the man page.
>>
>> It seems there is a mismatch between logrotate and invoke-rc.d about this 
>> action.
> Well, "rotate" is a custom action provided by logrotate.  We cannot really
> teach invoke-rc.d and policy-rc.d about it in the general case.
>
> What is happening is that invoke-rc.d is warning you that it is sending a
> non-standard action to policy-rc.d.  That warning doesn't show up otherwise.
>
> For now, it would be best for logrotate to use "--quiet" to call invoke-rc.d
> with custom actions.
>
> That said, I am unsure if a cron script is the proper place to use
> invoke-rc.d, it is certainly not its intended (and expected!) use profile.
>
> We usually control cronjobs through /etc/default/<package> or automatically
> (so as to avoid running them when the package is in removed but not purged
> state), and not through runlevels...
>
> Anyway, I am reassigning the bug to logrotate.
>
I should add that I get this message only on the machine where there is
a policy-rc.d, on standard installation there is no message.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to