#1276: service type pattern match does not include word boundaries
------------------------------------------------+---------------------------
Reporter:  madduck                              |        Owner:  community 
    Type:  enhancement                          |       Status:  new       
Priority:  normal                               |    Component:  service   
 Version:  0.24.4                               |     Severity:  normal    
Keywords:  service name regexp word bounardies  |        Stage:  Unreviewed
   Patch:  Code                                 |   Complexity:  Unknown   
------------------------------------------------+---------------------------
 Previously, unless a pattern was defined for a service type, puppet
 would check the process table for the service name instead. It would
 use plain string matching. In the case of "cron", an existing
 process "cronolog" would cause puppet to assume that "cron" was
 already running.

 This patch makes the default pattern be a regular expression,
 matching on the service name enclosed by word boundaries:

   /\b${name}d?\b/

 Since many daemons end in 'd', a final 'd' is optional.

 Thanks to David Schmitt for his help.

-- 
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1276>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to