On 22 Jan, 15:01, Thomas Bellman <bell...@nsc.liu.se> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > ere wrote: > > | As you can see I first start crond and iptables, then execute puppet, > | and finally check the result. > | Crond stops, but not iptables even if that is what I (think I) > | specified in the manifest. > > The problem is that by default the service type doesn't use the init > script to check the service's status. Instead it look in the process > table for a process named "iptables", and if it doesn't find it, it > will assume the service is stopped. > > You need to specify 'hasstatus => true' for it to work the right way.
Thanks for your reply. My manifest works now. What confused me was the different behavior for two services. I also read in the type reference, but did not realize that the hasstatus attribute applied to my problem. Thanks, Erling --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---