On 5 July 2011 16:26, Chris Phillips <ch...@untrepid.com> wrote:

>
>
> On 5 July 2011 14:24, Martin Alfke <tux...@gmail.com> wrote:
>
>> On 07/05/2011 03:19 PM, Brian Gallew wrote:
>> > I was seeing the behavior on my Solaris boxes when running Puppet under
>> > SMF.  The issue, in my case, was that I was trying to work around an SMF
>> > bug.  My "workaround" was to "svcadm disable puppetd;svccfg import
>> > /var/svc/manifest/network/puppetd.xml;svcadm enable puppet".  The astute
>> > viewer will notice that "svcadm disable puppetd" will cause SMF to send
>> > SIGTERM to puppet, at which point it will stop (as instructed) the
>> > current run, so the new manifest will not be imported and the service
>> > will not be re-started.  It was all very amusing, except for the bit
>> > where I had to fix a bunch of systems that weren't running Puppet
>> > anymore.  Mea culpa.
>>
>> I have seen a similar behavior on RHEL5.
>> /sbin/service puppet status gets information on actual running puppet run.
>> We fixed the puppet init script to verify whether the running puppet
>> process has parent pid 1 (init).
>>
>
> Yeah, so the stop will try a bunch of ways to find the process, and if the
> pid file doesn't exist then it just uses pidof. Hmm, not great. So I can see
> how this happens IF the stop is executed, however there still seems to be no
> reason to get there in the first place. That said if I try to run a stop
> during a run it doesn't work. I've cleared the issue as described, and I
> wouldn't expect that what I did (commenting out the ensure / enable) would
> actually do anything like clearing any old pid files or anything... And it's
> by no means prevalent on any of the rhel5 systems we have.
>
> Thanks
>

 Hi,

Was there any view about this being a bug? There is talk in this thread
about solaris but I'm only using rhel boxes.

Coming into work this morning I've seen a bunch of func processes have
stopped and puppet is doing nothing at all about it, despite a manifest
advising something else:

Manifest says -

    service { "funcd":
        ensure => running,
        enable => true,
        subscribe => File["/etc/func/minion.conf"],
        require => Package["func"],
        hasrestart => true,
        hasstatus => true
    }


Puppet run is not interested, thinks it's still running? -

debug: Service[funcd](provider=redhat): Executing '/sbin/service funcd
status'
debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig
funcd'

However as per the puppet service being turned off when it already is, this
is being left off when it should be being turned on - i.e. in both
situations it is thinking it is running when it is not - and the init script
CONFIRMS that it is NOT running, just like it does with puppet.

Thanks

Chris

-- 
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.

Reply via email to