summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG5
-rw-r--r--lib/puppet/type/service.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 426de19ed..db9ef9c12 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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