diff options
author | mh <mh@immerda.ch> | 2008-12-27 16:26:11 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-12-27 16:26:11 +0000 |
commit | f4cb6c350f169bc98a9c12473d00a6fa7586933a (patch) | |
tree | f148d0542fce1fa0cb7ad5d072d4fb70afe01d2d | |
parent | 572e7c05a6649c9838621b1993dd20c0d25771e7 (diff) |
stopping puppet daemon manually
-rw-r--r-- | manifests/cron/base.pp | 5 |
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', + } } |