summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/redhat/client.init15
-rw-r--r--conf/redhat/logrotate2
2 files changed, 11 insertions, 6 deletions
diff --git a/conf/redhat/client.init b/conf/redhat/client.init
index 4e27f736c..fa73efd8e 100644
--- a/conf/redhat/client.init
+++ b/conf/redhat/client.init
@@ -49,7 +49,7 @@ stop() {
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
-restart() {
+reload() {
echo -n $"Restarting puppet: "
killproc $puppetd -HUP
RETVAL=$?
@@ -57,6 +57,11 @@ restart() {
return $RETVAL
}
+restart() {
+ stop
+ start
+}
+
case "$1" in
start)
start
@@ -64,13 +69,13 @@ case "$1" in
stop)
stop
;;
- restart|force-reload)
+ restart)
restart
;;
- reload)
- restart
+ reload|force-reload)
+ reload
;;
- condrestart)
+ condrestart|try-restart)
[ -f "$pidfile" ] && restart
;;
status)
diff --git a/conf/redhat/logrotate b/conf/redhat/logrotate
index 01765baf5..e336d60f5 100644
--- a/conf/redhat/logrotate
+++ b/conf/redhat/logrotate
@@ -3,6 +3,6 @@
create 0644 puppet puppet
postrotate
[ -e /etc/init.d/puppetmaster ] && /etc/init.d/puppetmaster condrestart >/dev/null 2>&1 || true
- [ -e /etc/init.d/puppet ] && /etc/init.d/puppet condrestart > /dev/null 2>&1 || true
+ [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 || true
endscript
}