diff options
Diffstat (limited to 'manifests/yacy.pp')
-rw-r--r-- | manifests/yacy.pp | 10 |
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", |