aboutsummaryrefslogtreecommitdiff
path: root/app/admin/puppet/rc.puppetmaster.new
diff options
context:
space:
mode:
Diffstat (limited to 'app/admin/puppet/rc.puppetmaster.new')
-rw-r--r--app/admin/puppet/rc.puppetmaster.new13
1 files changed, 8 insertions, 5 deletions
diff --git a/app/admin/puppet/rc.puppetmaster.new b/app/admin/puppet/rc.puppetmaster.new
index 1217fbc..3ad5a9e 100644
--- a/app/admin/puppet/rc.puppetmaster.new
+++ b/app/admin/puppet/rc.puppetmaster.new
@@ -1,10 +1,13 @@
#!/bin/sh
+pidfile="/var/run/puppet/puppetmasterd.pid"
+options="--pidfile $pidfile"
+
puppetmaster_start() {
- echo "Starting puppetmaster"
- start-stop-daemon --start --quiet \
- --pidfile "/var/run/puppetmasterd.pid" \
- --exec /usr/bin/puppetmasterd
+ echo "Starting puppetmaster"
+ start-stop-daemon --start --quiet \
+ --pidfile $pidfile \
+ --exec /usr/bin/puppetmasterd -- $options
if [ "$?" != "0" ]; then
echo "Failed to start puppetmaster"
fi
@@ -13,7 +16,7 @@ puppetmaster_start() {
puppetmaster_stop() {
echo "Stopping puppetmaster"
start-stop-daemon --stop --quiet \
- --pidfile "/var/run/puppet/puppetmasterd.pid"
+ --pidfile $pidfile
if [ "$?" != "0" ]; then
echo "Failed to stop puppetmaster"
fi