Sha256: b9a1ae796266dd20e71054967ffb9c8bb24c3f754989ed23cbeae5aa0e7fef2f
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
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/puppet/run/puppetmasterd.pid case "$1" in start) cd / # Start daemons. printf "Starting Puppet server services:" /opt/csw/bin/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: svc-puppetmasterd 1403 2006-07-18 23:34:29Z luke $
Version data entries
5 entries across 5 versions & 1 rubygems