summaryrefslogtreecommitdiff
path: root/manifests/cron/base.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-12-27 16:26:11 +0000
committermh <mh@immerda.ch>2008-12-27 16:26:11 +0000
commitf4cb6c350f169bc98a9c12473d00a6fa7586933a (patch)
treef148d0542fce1fa0cb7ad5d072d4fb70afe01d2d /manifests/cron/base.pp
parent572e7c05a6649c9838621b1993dd20c0d25771e7 (diff)
stopping puppet daemon manually
Diffstat (limited to 'manifests/cron/base.pp')
-rw-r--r--manifests/cron/base.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp
index c69b33f..966aea7 100644
--- a/manifests/cron/base.pp
+++ b/manifests/cron/base.pp
@@ -2,7 +2,10 @@
class puppet::cron::base inherits puppet::base {
Service['puppet']{
- ensure => stopped,
enable => false,
}
+ exec{'stop_puppet':
+ command => 'kill `cat /var/run/puppet/puppetd.pid`',
+ onlyif => 'test -f test -f /var/run/puppet/puppetd.pid',
+ }
}