Sha256: 3d722988f67dfb53ae802dd4948a3aa15825844503fc2d2846b57eb03a95ac25

Contents?: true

Size: 986 Bytes

Versions: 204

Compression:

Stored size: 986 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/run/puppetlabs/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

Version data entries

204 entries across 204 versions & 2 rubygems

Version Path
puppet-4.10.4-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-retrospec-1.4.1 vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetmasterd
puppet-4.10.1 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.1-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.1-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.1-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-retrospec-1.4.0 vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetmasterd
puppet-4.10.0 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.0-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.0-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.0-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-retrospec-1.3.2 vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetmasterd
puppet-4.9.4 ext/solaris/smf/svc-puppetmasterd
puppet-4.9.4-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.9.4-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.9.4-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-retrospec-1.3.1 vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetmasterd
puppet-4.9.3 ext/solaris/smf/svc-puppetmasterd
puppet-4.9.3-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.9.3-x64-mingw32 ext/solaris/smf/svc-puppetmasterd