[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Luke Kanies
luke at puppetlabs.com
Tue May 10 08:05:08 UTC 2011
The following commit has been merged in the experimental branch:
commit eff4eec9d53d4fb8270799458455fe4bdc47d1df
Author: Dan Bode <bodepd at gmail.com>
Date: Sun Feb 13 02:53:23 2011 -0600
(#3) Base application should catch SYSINT
We should exit cleanly rather than throw traces.
diff --git a/lib/puppet/application/data_baseclass.rb b/lib/puppet/application/data_baseclass.rb
index 15ea961..599a217 100644
--- a/lib/puppet/application/data_baseclass.rb
+++ b/lib/puppet/application/data_baseclass.rb
@@ -5,6 +5,14 @@ class Puppet::Application::DataBaseclass < Puppet::Application
should_parse_config
run_mode :agent
+ def preinit
+ super
+ trap(:INT) do
+ $stderr.puts "Cancelling Interface"
+ exit(0)
+ end
+ end
+
option("--debug", "-d") do |arg|
Puppet::Util::Log.level = :debug
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list