summaryrefslogtreecommitdiffstats
path: root/debian/puppet.init
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-02-18 10:48:33 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-02-18 10:48:33 +1100
commitf087df0644c2532cbdf2d0e9ee20fae0a19dc6e6 (patch)
treeff4af7dbb1b4434e5e425ca74116bdeb0bde68cc /debian/puppet.init
parent0eede7604d9da9b453d48465b06de9813602c09b (diff)
downloadpuppet-f087df0644c2532cbdf2d0e9ee20fae0a19dc6e6.tar.gz
puppet-f087df0644c2532cbdf2d0e9ee20fae0a19dc6e6.tar.xz
puppet-f087df0644c2532cbdf2d0e9ee20fae0a19dc6e6.zip
Fixed ticket #1072 - Debian directory updates
Diffstat (limited to 'debian/puppet.init')
-rw-r--r--debian/puppet.init13
1 files changed, 11 insertions, 2 deletions
diff --git a/debian/puppet.init b/debian/puppet.init
index da9f548cb..063f9273f 100644
--- a/debian/puppet.init
+++ b/debian/puppet.init
@@ -12,6 +12,10 @@ test -x $DAEMON || exit 0
. /lib/lsb/init-functions
+reload_puppet() {
+ start-stop-daemon --stop --quiet --signal HUP --pidfile /var/run/puppet/$NAME.pid
+}
+
start_puppet() {
start-stop-daemon --start --quiet --pidfile /var/run/puppet/$NAME.pid \
--startas $DAEMON -- $DAEMON_OPTS
@@ -39,7 +43,12 @@ case "$1" in
stop_puppet
log_end_msg 0
;;
- restart|force-reload)
+ reload)
+ log_begin_msg "Reloading $DESC"
+ reload_puppet
+ log_end_msg 0
+ ;;
+ restart|force-reload)
log_begin_msg "Restarting $DESC"
stop_puppet
sleep 1
@@ -47,7 +56,7 @@ case "$1" in
log_end_msg 0
;;
*)
- echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+ echo "Usage: $0 {start|stop|restart|force-reload|reload}" >&2
exit 1
;;
esac