app-admin/puppetserver: add reload command
authorMatthew Thode <prometheanfire@gentoo.org>
Fri, 18 Mar 2016 16:45:50 +0000 (11:45 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Fri, 18 Mar 2016 16:45:50 +0000 (11:45 -0500)
Package-Manager: portage-2.2.26

app-admin/puppetserver/files/puppetserver.initd

index 42282db16796ccae0371aaa62c5fdf8e7a13ab21..9eef5e23822d3a93dd7f282f3ba7acae2048a1fa 100644 (file)
@@ -3,7 +3,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-extra_commands="checkconfig"
+extra_commands="checkconfig reload"
 
 LOGDIR="/var/log/puppetlabs/puppetserver"
 RUNDIR="/run/puppetlabs/puppetserver"
@@ -63,3 +63,10 @@ stop() {
     start-stop-daemon --stop --pidfile "${RUNDIR}/puppetserver.pid"
     eend $?
 }
+
+reload() {
+    ebegin "Reloading Puppet Server"
+    start-stop-daemon --signal HUP --pidfile "${RUNDIR}/puppetserver.pid"
+    eend $?
+}
+