hi Daniel,

i got the problem of "Why does Puppet keep trying to start a running
service?"


The ideal way to check for a service is to use the hasstatus
parameter, which calls the init script with the status parameter. This
should report back to Puppet whether the service is running or
stopped.

In some broken scripts, however, the status output will be correct
(“Ok” or “not running”), but the exit code of the script will be
incorrect. Most commonly, the script will always blindly return 0, no
matter what the actual service state is. Puppet only uses the exit
code, so interprets this as “the service is stopped”.

There are two workarounds, and one fix. If you must deal with the
scripts broken behavior as is, you can modify your resource to either
use the pattern parameter to look for a particular process name, or
the status parameter to use a custom script to check for the service
status.

The fix is to rewrite the init script to use the proper exit codes.
When rewriting them, or submitting bug reports to vendors or upstream,
be sure to reference the LSB Init Script Actions standard. This should
carry more weight by pointing out an official, published standard
they’re failing to meet, rather than trying to explain how their bug
is causing problems in Puppet.



thanks :
Sanjiv Singh(iLabs)
Impetus InfoTech.

On Nov 17, 7:03 am, Daniel Pittman <[email protected]> wrote:
> "sanjiv.singh" <[email protected]> writes:
> > i had configured puppet with LDAP....
> > i.e. node information for stored in LDAP......
>
> [...]
>
> > $ puppet --class <classname>  ( triggers all nodes ,which include this
> > class).
>
> > as i know when we use following :
>
> > $ puppetrun --host <host_name>
> > it will look for node entry in puppet class , not in Ldap......
>
> > but ,in my development environment , this functionality criticallly required
> > .  , i want to trigger only perticuler host through puppetrun.
>
> > how can I achieve this functionality ?
>
> You want mcollective, and the puppet plugin for that, which is the best
> current mechanism for achieving this.
>
> Regards,
>         Daniel
>
> --
> ✣ Daniel Pittman            ✉ [email protected]            ☎ +61 401 155 707
>                ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to