diff options
-rw-r--r-- | CHANGELOG | 5 | ||||
-rw-r--r-- | lib/puppet/type/service.rb | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ + Added some warnings and logs to the service type so + users will be encouraged to specify either "ensure" + or "enabled" and added debugging to indicate why + restarting is skipped when it is. + Changed the location of the classes.txt to the state directory. diff --git a/lib/puppet/type/service.rb b/lib/puppet/type/service.rb index 354623907..c582b17ee 100644 --- a/lib/puppet/type/service.rb +++ b/lib/puppet/type/service.rb @@ -307,6 +307,10 @@ module Puppet if self.respond_to?(:configchk) self.configchk end + + unless @parameters.include?(:ensure) or @parameters.include?(:enable) + warning "No properties specified; 'enable' or 'ensure' should be specified" + end end # Basically just a synonym for restarting. Used to respond |