diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-03-18 11:45:50 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-03-18 11:45:50 -0500 |
commit | 900f481a57393118990abde87406c8bca4e97a71 (patch) | |
tree | 80344c0ca13db406a9864d99568989562a225833 /app-admin/puppetserver/files | |
parent | media-video/photofilmstrip: bump to vn. 2.1.0 (diff) | |
download | gentoo-900f481a57393118990abde87406c8bca4e97a71.tar.gz gentoo-900f481a57393118990abde87406c8bca4e97a71.tar.bz2 gentoo-900f481a57393118990abde87406c8bca4e97a71.zip |
app-admin/puppetserver: add reload command
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-admin/puppetserver/files')
-rw-r--r-- | app-admin/puppetserver/files/puppetserver.initd | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app-admin/puppetserver/files/puppetserver.initd b/app-admin/puppetserver/files/puppetserver.initd index 42282db16796..9eef5e23822d 100644 --- a/app-admin/puppetserver/files/puppetserver.initd +++ b/app-admin/puppetserver/files/puppetserver.initd @@ -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 $? +} + |