summaryrefslogtreecommitdiff
path: root/pcr/puppet/puppetmaster
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
commit462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch)
tree11d4d3f054aae9ffd869adc634054f64a16d83b8 /pcr/puppet/puppetmaster
parent748e32a3a886569b58a27003e85b76be5746153d (diff)
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'pcr/puppet/puppetmaster')
-rwxr-xr-xpcr/puppet/puppetmaster45
1 files changed, 0 insertions, 45 deletions
diff --git a/pcr/puppet/puppetmaster b/pcr/puppet/puppetmaster
deleted file mode 100755
index 8b3971053..000000000
--- a/pcr/puppet/puppetmaster
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-DAEMON=$(type -p puppetmasterd)
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-[ -f /etc/conf.d/puppetmaster ] && . /etc/conf.d/puppetmaster
-
-PID=$(pidof -xo %PPID $DAEMON)
-case "$1" in
- start)
- stat_busy "Starting Puppet Master Daemon"
- if [ -z "$PID" ]; then
- [ -f /var/run/puppetmaster.pid ] && rm -f /var/run/puppetmaster.pid
- $DAEMON $PUPPETMASTER_ARGS
- fi
- if [ ! -z "$PID" -o $? -gt 0 ]; then
- stat_fail
- else
- PID=$(pidof -xo %PPID $DAEMON)
- echo $PID > /var/run/puppetmaster.pid
- add_daemon puppetmaster
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Puppet Master Daemon"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon puppetmaster
- rm -f /var/run/puppetmaster.pid
- stat_done
- fi
- ;;
- restart)
- $0 stop
- if [ ! -z $PID ]; then
- while ps -p $PID > /dev/null; do sleep 1; done
- fi
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac