summaryrefslogtreecommitdiff
path: root/manifests/cron/base.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-10-27 14:22:42 +0100
committermh <mh@immerda.ch>2009-10-27 14:22:42 +0100
commitb3c1d8d45f46f6ce521c23a135117a5216704449 (patch)
tree90180c39f72fde31b8a2e12b22b8ef8e28213baf /manifests/cron/base.pp
parent9beff1dc3b928c055ebb038af56fea29406f2c09 (diff)
fix disabling of the service
- don't use the status of the service script - try to kill puppet _after_ we managed the service
Diffstat (limited to 'manifests/cron/base.pp')
-rw-r--r--manifests/cron/base.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp
index 98bb394..42f6cc5 100644
--- a/manifests/cron/base.pp
+++ b/manifests/cron/base.pp
@@ -3,9 +3,11 @@
class puppet::cron::base inherits puppet::base {
Service['puppet']{
enable => false,
+ hasstatus => false,
}
exec{'stop_puppet':
command => 'kill `cat /var/run/puppet/puppetd.pid`',
onlyif => 'test -f /var/run/puppet/puppetd.pid',
+ require => Service['puppet'],
}
}