Sha256: f39a91baa1d1fb299d27e577d19ca43b33bd302b4a8054623006c9798a9fc5c9
Contents?: true
Size: 982 Bytes
Versions: 9
Compression:
Stored size: 982 Bytes
Contents
#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ depend() { need net use dns logger } checkconfig() { if [[ ! -d "${PUPPET_PID_DIR}" ]] ; then eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory" return 1 fi return 0 } start() { checkconfig || return $? local options="" [[ -n "${PUPPET_EXTRA_OPTS}" ]] && options="${options} ${PUPPET_EXTRA_OPTS}" ebegin "Starting puppet" start-stop-daemon --start --quiet --exec /usr/bin/puppetd -- ${options} eend $? "Failed to start puppet" } stop() { ebegin "Stopping puppet" start-stop-daemon --stop --quiet --pidfile ${PUPPET_PID_DIR}/puppetd.pid local ret=$? eend ${ret} "Failed to stop puppet" rm -f ${PUPPET_PID_DIR}/puppetd.pid return ${ret} }
Version data entries
9 entries across 9 versions & 1 rubygems