diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-08-13 10:34:44 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-08-13 10:34:44 +0000 |
commit | d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad (patch) | |
tree | 4f183688e1120b8f15c87fc30f237a0463811e69 /modules | |
parent | 85c9e394e4ad4c8667f32f9cd9e093356659cdb5 (diff) | |
download | puppet-d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad.tar puppet-d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad.tar.gz puppet-d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad.tar.bz2 puppet-d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad.tar.xz puppet-d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad.zip |
install script to kill viewvc.fcgi processes taking more than 1G and run it every 5 minutes
Diffstat (limited to 'modules')
-rw-r--r-- | modules/viewvc/manifests/init.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp index bec694b4..9b4a60da 100644 --- a/modules/viewvc/manifests/init.pp +++ b/modules/viewvc/manifests/init.pp @@ -20,6 +20,20 @@ class viewvc { notify => Service['apache'], } + $kill_viewvc_path = '/usr/local/sbin/kill_viewvc' + file { "$kill_viewvc_path": + ensure => present, + content => template('viewvc/kill_viewvc.sh'), + } + + cron { 'kill_viewvc': + command => "$kill_viewvc_path", + hour => "*", + minute => "*/5", + user => "apache", + environment => "MAILTO=root", + } + # need newer version of viewvc apache::vhost_base { "svnweb.$domain": # TODO created a full fledged type |