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