Sha256: d61b6ae2c0fa8546ed46f77fa249a2b6966c822810757ceb277c517516e52c84

Contents?: true

Size: 1.04 KB

Versions: 143

Compression:

Stored size: 1.04 KB

Contents

#!/bin/sh
# This is the /etc/init.d file for puppetd
# Modified for CSW
#
# description: puppetd - Puppet Automation Client
#

. /lib/svc/share/smf_include.sh

prefix=/opt/csw
exec_prefix=/opt/csw
sysconfdir=/opt/csw/etc
sbindir=/opt/csw/sbin

pidfile=/var/lib/puppet/run/agent.pid

case "$1" in
start)
    cd /
    # Start daemons.

    printf "Starting Puppet client services:"

    /opt/csw/sbin/puppetd

    printf " puppetd"
    echo ""
    ;;
stop)
    printf "Stopping Puppet client services:"
    kill `cat $pidfile`

    printf " puppetd"
    echo ""
    ;;
restart)
    printf "Restarting Puppet client services:"
    kill -HUP `cat $pidfile`

    printf " puppetd"
    echo ""
    ;;
reload)
    printf "Reloading Puppet client services:"

    kill -HUP `cat $pidfile`

    printf " puppetd"
    echo ""
    ;;
status)
    if [ -f $pidfile ]; then
        pid=`cat $pidfile`
        curpid=`pgrep puppetd`
        if [ "$pid" -eq "$curpid" ]; then
            exit 0
        else
            exit 1
        fi
    else
        exit 1
    fi
esac
exit 0

Version data entries

143 entries across 143 versions & 3 rubygems

Version Path
puppet-3.6.2 ext/solaris/smf/svc-puppetd
puppet-3.6.2-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.6.1 ext/solaris/smf/svc-puppetd
puppet-3.6.1-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.6.0 ext/solaris/smf/svc-puppetd
puppet-3.6.0-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.6.0.rc1 ext/solaris/smf/svc-puppetd
puppet-3.6.0.rc1-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.5.1 ext/solaris/smf/svc-puppetd
puppet-3.5.1-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.5.1.rc1 ext/solaris/smf/svc-puppetd
puppet-3.5.1.rc1-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.5.0.rc3 ext/solaris/smf/svc-puppetd
puppet-3.5.0.rc3-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.5.0.rc2 ext/solaris/smf/svc-puppetd
puppet-3.5.0.rc2-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.5.0.rc1 ext/solaris/smf/svc-puppetd
puppet-3.5.0.rc1-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.4.3 ext/solaris/smf/svc-puppetd
puppet-2.7.25 conf/solaris/smf/svc-puppetd