Sha256: a809a7637c0a035681870c28a2c3d38b787ad23860c781566bc811b5ced95e2f

Contents?: true

Size: 997 Bytes

Versions: 571

Compression:

Stored size: 997 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 an 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/ruby /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

571 entries across 571 versions & 2 rubygems

Version Path
puppet-6.24.0 ext/gentoo/init.d/puppet
puppet-6.24.0-x86-mingw32 ext/gentoo/init.d/puppet
puppet-6.24.0-x64-mingw32 ext/gentoo/init.d/puppet
puppet-6.24.0-universal-darwin ext/gentoo/init.d/puppet
puppet-7.9.0 ext/gentoo/init.d/puppet
puppet-7.9.0-x86-mingw32 ext/gentoo/init.d/puppet
puppet-7.9.0-x64-mingw32 ext/gentoo/init.d/puppet
puppet-7.9.0-universal-darwin ext/gentoo/init.d/puppet
puppet-6.23.0 ext/gentoo/init.d/puppet
puppet-6.23.0-x86-mingw32 ext/gentoo/init.d/puppet
puppet-6.23.0-x64-mingw32 ext/gentoo/init.d/puppet
puppet-6.23.0-universal-darwin ext/gentoo/init.d/puppet
puppet-7.8.0 ext/gentoo/init.d/puppet
puppet-7.8.0-x86-mingw32 ext/gentoo/init.d/puppet
puppet-7.8.0-x64-mingw32 ext/gentoo/init.d/puppet
puppet-7.8.0-universal-darwin ext/gentoo/init.d/puppet
puppet-7.7.0 ext/gentoo/init.d/puppet
puppet-7.7.0-x86-mingw32 ext/gentoo/init.d/puppet
puppet-7.7.0-x64-mingw32 ext/gentoo/init.d/puppet
puppet-7.7.0-universal-darwin ext/gentoo/init.d/puppet