From 772c7c87ffab1b7a70413fa6bbd20df45490dbf2 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 24 Feb 2006 23:01:25 +0000 Subject: Adding TERM to the signals being trapped git-svn-id: https://reductivelabs.com/svn/puppet/trunk@945 980ebf18-57e1-0310-9a29-db15c13687c0 --- bin/puppetd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin/puppetd') diff --git a/bin/puppetd b/bin/puppetd index fb8759057..2fabccd69 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -278,10 +278,12 @@ end # now set up the network client with the certs, now that we have them client.setcerts -trap(:INT) { - Puppet.notice "Caught INT; shutting down" - client.shutdown -} +[:INT, :TERM].each do |signal| + trap(signal) do + Puppet.notice "Caught #{signal}; shutting down" + client.shutdown + end +end if onetime begin -- cgit