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-5.3.7 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.7-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.7-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.7-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-4.10.12 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.12-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.12-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.12-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-4.10.11 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.11-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.11-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-4.10.11-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-5.3.6 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.6-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.6-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.6-universal-darwin ext/solaris/smf/svc-puppetmasterd
puppet-5.3.5 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.5-x86-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.5-x64-mingw32 ext/solaris/smf/svc-puppetmasterd
puppet-5.3.5-universal-darwin ext/solaris/smf/svc-puppetmasterd