plathrop / puppet-module-supervisor

Puppet module for configuring the supervisor daemon tool.
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Fixed: 'Could not restart Service' error. #50

Closed aljungberg closed 11 years ago

aljungberg commented 11 years ago

Without this fix, attempting to restart a supervisor service on Ubuntu 12.04 would result in a "Could not restart Service" error, even that the restart was in fact successful. The \n in the grep pattern was being actualised by puppet, rather than being made a part of the regex.

This fix makes the \n part of the stopped … started regex.

Refs #38.

aljungberg commented 11 years ago

Admittedly I only tested this on 1 platform, in 1 case, so certainly feel free not to merge this. Hopefully it will help someone with a similar error message either way.