2 DAEMON
=$
(type -p puppetmasterd
)
6 [ -f /etc
/conf.d
/puppetmaster
] && .
/etc
/conf.d
/puppetmaster
8 PID
=$
(pidof
-xo %PPID
$DAEMON)
11 stat_busy
"Starting Puppet Master Daemon"
12 if [ -z "$PID" ]; then
13 [ -f /var
/run
/puppetmaster.pid
] && rm -f /var
/run
/puppetmaster.pid
14 $DAEMON $PUPPETMASTER_ARGS
16 if [ ! -z "$PID" -o $?
-gt 0 ]; then
19 PID
=$
(pidof
-xo %PPID
$DAEMON)
20 echo $PID > /var
/run
/puppetmaster.pid
21 add_daemon puppetmaster
26 stat_busy
"Stopping Puppet Master Daemon"
27 [ ! -z "$PID" ] && kill $PID &> /dev
/null
31 rm_daemon puppetmaster
32 rm -f /var
/run
/puppetmaster.pid
38 if [ ! -z $PID ]; then
39 while ps
-p $PID > /dev
/null
; do sleep 1; done
44 echo "usage: $0 {start|stop|restart}"