[chef-dev] Re: CHEF-2880 debian policy and service provider


Chronological Thread 
  • From: Tollef Fog Heen < >
  • To:
  • Subject: [chef-dev] Re: CHEF-2880 debian policy and service provider
  • Date: Fri, 10 Feb 2012 19:42:11 +0100

]] Bryan McLellan 

> We're not crazy about adding resource method solely for this. The
> simplest solution is to just run "invoke-rc.d --disclose-deny" all the
> time. The big question here, is there a use case where you would have
> the service disabled by policy but still want Chef to keep running if
> you ask it to start it? Laurent? Thom? Tollef? (CHEF-597 [2])

Well, invoke-rc.d is not what is used by init, invoke-rc.d is used by
maintainer scripts to decide what, if anything, should be done on
upgrades.

The symlinks in /etc/rc$runlevel.d/ are usually what controls if a
service should start.

I think we shouldn't use invoke-rc.d, but rather use the service
command.

A use case for having policy-rc.d decline anything invoke-rc.d asks it
would be to not restart services on upgrade, but rather handle that
through chef or similar mechanisms.

To solve Laurent's use case, I'd say just diverting the service command
at the start and undiverting it afterwards would be just as sane as
using policy-rc.d.

Regards,
-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are



Archive powered by MHonArc 2.6.16.

§