aboutsummaryrefslogtreecommitdiff
path: root/manifests/yacy.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-12-14 18:39:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-12-14 18:39:58 -0200
commit8176e3b726c834e0fea718fa718e60e6c501e21e (patch)
tree12211cff1a0d5014f4a40e316ad46a7419bc2f4c /manifests/yacy.pp
parent6d8d7f56ad84fea1af59d6134a4c2285c1fe9ab1 (diff)
downloadpuppet-nodo-8176e3b726c834e0fea718fa718e60e6c501e21e.tar.gz
puppet-nodo-8176e3b726c834e0fea718fa718e60e6c501e21e.tar.bz2
Gracefully restart yacy everyday
Diffstat (limited to 'manifests/yacy.pp')
-rw-r--r--manifests/yacy.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/yacy.pp b/manifests/yacy.pp
index cc8cb6c..e5b2f5e 100644
--- a/manifests/yacy.pp
+++ b/manifests/yacy.pp
@@ -22,6 +22,16 @@ class nodo::yacy inherits nodo::vserver {
require => Package['yacy'],
}
+ # gracefully restart yacy everyday
+ cron { "yacy-restart":
+ command => "/etc/init.d/yacy restart > /dev/null 2>&1",
+ user => root,
+ hour => "*/4",
+ minute => "0",
+ ensure => present,
+ require => Service['yacy'],
+ }
+
tor::daemon::hidden_service { 'yacy':
ports => [ '8090 127.0.0.1:8090', '80 127.0.0.1:8090' ],
data_dir => "$tor::daemon::data_dir/hidden",