Sha256: 8420a54897fb6eef13f6a5f7d239d526c32ab32988df5e2f91189f2f6c12d0cf

Contents?: true

Size: 994 Bytes

Versions: 6

Compression:

Stored size: 994 Bytes

Contents

#!/bin/sh
#

. /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/master.pid

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

    printf "Starting Puppet server services:"

    /opt/csw/sbin/puppetmasterd

    printf " puppetmaster"
    echo ""
    ;;
stop)
    printf "Stopping Puppet server services:"
    kill `cat $pidfile`

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

    printf " puppetmasterd"
    echo ""
    ;;
reload)
    printf "Reloading Puppet server services:"

    kill -HUP `cat $pidfile`

    printf " puppetmasterd"
    echo ""
    ;;
status)
    if [ -f $pidfile ]; then
        pid=`cat $pidfile`
        curpid=`pgrep puppetmasterd`
        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-puppetmasterd
puppet-2.6.5 conf/solaris/smf/svc-puppetmasterd
puppet-2.6.4 conf/solaris/smf/svc-puppetmasterd
puppet-2.6.3 conf/solaris/smf/svc-puppetmasterd
puppet-2.6.2 conf/solaris/smf/svc-puppetmasterd
puppet-2.6.1 conf/solaris/smf/svc-puppetmasterd