Sha256: d61b6ae2c0fa8546ed46f77fa249a2b6966c822810757ceb277c517516e52c84

Contents?: true

Size: 1.04 KB

Versions: 143

Compression:

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

Version data entries

143 entries across 143 versions & 3 rubygems

Version Path
puppet-3.8.7 ext/solaris/smf/svc-puppetd
puppet-3.8.7-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.7-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.6 ext/solaris/smf/svc-puppetd
puppet-3.8.6-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.6-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.5 ext/solaris/smf/svc-puppetd
puppet-3.8.5-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.5-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.4 ext/solaris/smf/svc-puppetd
puppet-3.8.4-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.4-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.3 ext/solaris/smf/svc-puppetd
puppet-3.8.3-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.3-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.2 ext/solaris/smf/svc-puppetd
puppet-3.8.2-x86-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.2-x64-mingw32 ext/solaris/smf/svc-puppetd
puppet-3.8.1 ext/solaris/smf/svc-puppetd
puppet-3.8.1-x86-mingw32 ext/solaris/smf/svc-puppetd