Package: puppet
Version: 0.23.2-13
Severity: wishlist

Here's a patch that will add a reload option to puppet (that does reread
its config and do a configuration run on SIGHUP):

--- puppet.orig 2007-10-30 00:10:13.000000000 -0400
+++ puppet      2007-11-20 02:18:36.000000000 -0500
@@ -21,6 +21,10 @@
        start-stop-daemon --stop --quiet --pidfile /var/run/puppet/$NAME.pid
 }
 
+reload_puppet() {
+       start-stop-daemon --stop --quiet --signal HUP --pidfile 
/var/run/puppet/$NAME.pid
+}
+
 if [ ! -d /var/run/puppet ]; then
        rm -rf /var/run/puppet
        mkdir -p /var/run/puppet
@@ -39,6 +43,12 @@
        stop_puppet
        log_end_msg 0
        ;;
+    reload)
+       log_begin_msg "Reloading $DESC"
+       reload_puppet
+       log_end_msg 0
+       ;;
+
   restart|force-reload)
        log_begin_msg "Restarting $DESC"
        stop_puppet

Maybe a force-reload would be more appropriate here (since puppet
reloads the files by itself anyways...)

Note that this does not apply to puppetmaster.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (1, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-1-686
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)

Versions of packages puppet depends on:
ii  adduser                3.102             Add and remove users and groups
ii  facter                 1.3.5-1           a library for retrieving facts fro
ii  libopenssl-ruby        1.0.0+ruby1.8.2-1 OpenSSL interface for Ruby
ii  libshadow-ruby1.8      1.4.1-7           Interface of shadow password for R
ii  libxmlrpc-ruby         1.8.2-1           XML-RPC support for Ruby
ii  lsb-base               3.1-23.2etch1     Linux Standard Base 3.1 init scrip
ii  ruby                   1.8.2-1           An interpreter of object-oriented 

Versions of packages puppet recommends:
ii  rdoc                          1.8.2-1    Generate documentation from ruby s

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to