From d1efcc1f50cfb499bab4b71e7dba79dcb45db5ad Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 13 Aug 2011 10:34:44 +0000 Subject: install script to kill viewvc.fcgi processes taking more than 1G and run it every 5 minutes --- modules/viewvc/manifests/init.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/viewvc') 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 -- cgit v1.2.1