Sha256: ff52928e01d47a4db6671b0e7b5c20059a6c13fa56a8f5b4b54bf01afa398651

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 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

# $Id$

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-2.6.6 conf/solaris/smf/svc-puppetd
puppet-2.6.5 conf/solaris/smf/svc-puppetd
puppet-2.6.4 conf/solaris/smf/svc-puppetd
puppet-2.6.3 conf/solaris/smf/svc-puppetd
puppet-2.6.2 conf/solaris/smf/svc-puppetd
puppet-2.6.1 conf/solaris/smf/svc-puppetd