Sha256: a29d2311f9e36695828d12c1caa73f2b3c8de1e1e3d1e8d696a4cf29b93302b2

Contents?: true

Size: 1.16 KB

Versions: 244

Compression:

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

if [ -z $SMF_SYSVOL_FS ]; then 
  piddir=/var/run/puppetlabs
else
  piddir=$SMF_SYSVOL_FS/puppetlabs
fi;

pidfile=$piddir/agent.pid

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

    printf "Starting Puppet client services:"
    mkdir -p $piddir

    /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

244 entries across 244 versions & 1 rubygems

Version Path
puppet-6.24.0 ext/solaris/smf/svc-puppetd
puppet-6.24.0-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-6.24.0-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-6.24.0-universal-darwin ext/solaris/smf/svc-puppetd
puppet-7.9.0 ext/solaris/smf/svc-puppetd
puppet-7.9.0-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-7.9.0-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-7.9.0-universal-darwin ext/solaris/smf/svc-puppetd
puppet-6.23.0 ext/solaris/smf/svc-puppetd
puppet-6.23.0-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-6.23.0-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-6.23.0-universal-darwin ext/solaris/smf/svc-puppetd
puppet-7.8.0 ext/solaris/smf/svc-puppetd
puppet-7.8.0-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-7.8.0-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-7.8.0-universal-darwin ext/solaris/smf/svc-puppetd
puppet-7.7.0 ext/solaris/smf/svc-puppetd
puppet-7.7.0-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-7.7.0-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-7.7.0-universal-darwin ext/solaris/smf/svc-puppetd