From f4cb6c350f169bc98a9c12473d00a6fa7586933a Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 27 Dec 2008 16:26:11 +0000 Subject: stopping puppet daemon manually --- manifests/cron/base.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', + } } -- cgit v1.2.3