Sha256: fd817c5fb67492c18d7595949634c00c484effa789db57ad37e11a0ebcbf21ce
Contents?: true
Size: 996 Bytes
Versions: 52
Compression:
Stored size: 996 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
52 entries across 52 versions & 1 rubygems