openbsd-ports/sysutils/ruby-puppet/2/pkg/puppetmasterd.rc
2013-03-13 09:56:19 +00:00

19 lines
408 B
Bash

#!/bin/sh
#
# $OpenBSD: puppetmasterd.rc,v 1.2 2013/03/13 09:56:19 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/puppet agent"
. /etc/rc.d/rc.subr
pexp="${RUBY} ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
# XXX can't stop within a fair amount of time when puppetmasterd is unreachable;
# related to: http://projects.puppetlabs.com/issues/11360 ?
rc_stop() {
pkill -9 -f "^${pexp}"
}
rc_cmd $1