and now with the new correct puppet-dev address... On Mon, Nov 17, 2008 at 7:42 AM, Nigel Kersten <[EMAIL PROTECTED]> wrote: > (sending to users and -dev to try and catch the Mac users) > > So I've been playing around with a launchd service type, and > conceptually it doesn't map cleanly to Puppet in all cases. > > launchd differs from a lot of service frameworks in that it can also > keep jobs alive when the process exits, which leads to some of the > problems below. > > Jobs can be set to have various flags that are reasonably > self-explanatoryg that can cause problems here. > > KeepAlive - whether it keeps the job alive. > RunAtLoad - whether the job runs when loaded > Disabled - whether the job is loaded at boot. > > > In puppet we have the concepts of a job being "enabled" and "ensure" > as being "running" or "stopped" > > If you have a KeepAlive job, if you stop it, then launchd relaunches > it. To truly disable it you need to set it to be "stopped" *and* set > "enabled" to false in Puppet terminology. > > If you have a RunAtLoad job, if you set it to be "enabled", then > launchd effectively sets it to be "running", so it is impossible to > have service { "foo": enabled => true, ensure => stopped } > > I can implement the refreshable feature by interrogating the job, but > I'm unsure how to deal with the above mappings. > > Do I just throw my hands up and say, your plists, you deal with the > consequences of jobs set with KeepAlive and RunAtLoad and the service > settings just work as puppet sets them to be? > > > > > > > -- > Nigel Kersten > Systems Administrator > Tech Lead - MacOps >
-- Nigel Kersten Systems Administrator Tech Lead - MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---